diff options
Diffstat (limited to 'testing/iscsi-scst/iscsi-scst.initd')
-rw-r--r-- | testing/iscsi-scst/iscsi-scst.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/iscsi-scst/iscsi-scst.initd b/testing/iscsi-scst/iscsi-scst.initd new file mode 100644 index 000000000..4d4cd76b5 --- /dev/null +++ b/testing/iscsi-scst/iscsi-scst.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# +# Start the iSCSI-SCST Target. +# + +depend() { + need net + afer firewall +} + +start() { + modprobe -q crc32c + modprobe -q iscsi-scst + ebegin "Starting iscsi-scstd" + start-stop-daemon --start --exec /usr/sbin/iscsi-scstd + eend 0 +} + +stop() { + ebegin "Stopping iscsi-scstd" + start-stop-daemon --stop --exec /usr/sbin/iscsi-scstd + eend 0 +} |