[Midnightbsd-cvs] src [11761] trunk/etc/rc.d: add iscsi scripts
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Jul 11 10:03:19 EDT 2018
Revision: 11761
http://svnweb.midnightbsd.org/src/?rev=11761
Author: laffer1
Date: 2018-07-11 10:03:18 -0400 (Wed, 11 Jul 2018)
Log Message:
-----------
add iscsi scripts
Added Paths:
-----------
trunk/etc/rc.d/iscsictl
trunk/etc/rc.d/iscsid
Added: trunk/etc/rc.d/iscsictl
===================================================================
--- trunk/etc/rc.d/iscsictl (rev 0)
+++ trunk/etc/rc.d/iscsictl 2018-07-11 14:03:18 UTC (rev 11761)
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $MidnightBSD$
+#
+
+# PROVIDE: iscsictl
+# REQUIRE: NETWORK iscsid
+# BEFORE: DAEMON
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="iscsictl"
+rcvar="iscsictl_enable"
+command="/usr/bin/${name}"
+command_args="${iscsictl_flags}"
+required_modules="iscsi"
+
+load_rc_config $name
+run_rc_command "$1"
Property changes on: trunk/etc/rc.d/iscsictl
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/etc/rc.d/iscsid
===================================================================
--- trunk/etc/rc.d/iscsid (rev 0)
+++ trunk/etc/rc.d/iscsid 2018-07-11 14:03:18 UTC (rev 11761)
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $MidnightBSD$
+#
+
+# PROVIDE: iscsid
+# REQUIRE: NETWORK
+# BEFORE: DAEMON
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="iscsid"
+rcvar="iscsid_enable"
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/${name}"
+required_modules="iscsi"
+
+load_rc_config $name
+run_rc_command "$1"
Property changes on: trunk/etc/rc.d/iscsid
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list