From 57b8e2e4affbda9b03e980d8b7bb4820c8b81357 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 18 Apr 2012 12:36:55 +0000 Subject: testing/targetcli: upgrade to 2.0rc1.fb11. Created working dir. Preliminary init script (untested). --- testing/targetcli/targetcli.initd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 testing/targetcli/targetcli.initd (limited to 'testing/targetcli/targetcli.initd') diff --git a/testing/targetcli/targetcli.initd b/testing/targetcli/targetcli.initd new file mode 100755 index 000000000..e14ebca32 --- /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 $? +} -- cgit v1.2.3