diff options
Diffstat (limited to 'testing/targetcli/targetcli.initd')
-rwxr-xr-x | testing/targetcli/targetcli.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/targetcli/targetcli.initd b/testing/targetcli/targetcli.initd new file mode 100755 index 0000000000..e14ebca328 --- /dev/null +++ b/testing/targetcli/targetcli.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript + +description="Administration tool for managing RisingTide Systems storage targets" +command="/usr/bin/targetcli" + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${RC_SVCNAME}" + mount -t configfs none /sys/kernel/config + $command restoreconfig clear_existing=true + eend $? +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + $command clearconfig confirm=true + umount /sys/kernel/config + eend $? +} |