From 74932c8d2c3391e222367518dcddfae52cb854b5 Mon Sep 17 00:00:00 2001 From: claudio Date: Sun, 13 Jul 2014 12:07:11 +0000 Subject: [PATCH] rc.d script for iscsid. --- etc/rc.d/iscsid | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/rc.d/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 -- 2.20.1