rc.d script for iscsid.
authorclaudio <claudio@openbsd.org>
Sun, 13 Jul 2014 12:07:11 +0000 (12:07 +0000)
committerclaudio <claudio@openbsd.org>
Sun, 13 Jul 2014 12:07:11 +0000 (12:07 +0000)
etc/rc.d/iscsid [new file with mode: 0644]

diff --git a/etc/rc.d/iscsid b/etc/rc.d/iscsid
new file mode 100644 (file)
index 0000000..6905f4d
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $OpenBSD: iscsid,v 1.1 2014/07/13 12:07:11 claudio Exp $
+
+daemon="/usr/sbin/iscsid"
+control="/usr/sbin/iscsictl"
+
+. /etc/rc.d/rc.subr
+
+rc_reload=NO
+rc_stop=NO
+
+rc_start() {
+       ${rcexec} "${daemon} ${daemon_flags} && ${control} reload"
+}
+
+rc_cmd $1