aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iscsi-scst-svn/iscsi-scst.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/iscsi-scst-svn/iscsi-scst.initd')
-rw-r--r--testing/iscsi-scst-svn/iscsi-scst.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/iscsi-scst-svn/iscsi-scst.initd b/testing/iscsi-scst-svn/iscsi-scst.initd
new file mode 100644
index 0000000000..4d4cd76b59
--- /dev/null
+++ b/testing/iscsi-scst-svn/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
+}