summaryrefslogtreecommitdiffstats
path: root/testing/iscsi-scst/iscsi-scst.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-04-21 14:32:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-04-21 14:32:02 +0000
commit78834aed72ecf339da0d48c94c5329af7ea35e6c (patch)
treee99a0e20ecb97c27e54ae4e8774f709f68db4f42 /testing/iscsi-scst/iscsi-scst.initd
parent28d3a986488900f1d15ec23d02f6f264bc8fe692 (diff)
downloadaports-78834aed72ecf339da0d48c94c5329af7ea35e6c.tar.bz2
aports-78834aed72ecf339da0d48c94c5329af7ea35e6c.tar.xz
testing/iscsi-scst: new aport
ISCSI target for SCST - userspace tools http://iscsi-scst.sourceforge.net/
Diffstat (limited to 'testing/iscsi-scst/iscsi-scst.initd')
-rw-r--r--testing/iscsi-scst/iscsi-scst.initd23
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
+}