From: claudio Date: Sun, 13 Jul 2014 12:07:11 +0000 (+0000) Subject: rc.d script for iscsid. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=74932c8d2c3391e222367518dcddfae52cb854b5;p=openbsd rc.d script for iscsid. --- diff --git a/etc/rc.d/iscsid b/etc/rc.d/iscsid new file mode 100644 index 00000000000..6905f4dbc70 --- /dev/null +++ b/etc/rc.d/iscsid @@ -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