From 41d4cec7c5ad90f0944c8f0b707b0d3265a645c8 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 21 Oct 2010 00:02:25 +0000 Subject: Add init script --- netfs/etc/init | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 netfs/etc/init diff --git a/netfs/etc/init b/netfs/etc/init new file mode 100644 index 0000000..ee2d8b8 --- /dev/null +++ b/netfs/etc/init @@ -0,0 +1,20 @@ +#!/sbin/runscript +depend() { + need network +} + +start() { + ebegin "Starting NetFS daemon" + /usr/bin/icebox \ + --IceBox.Service.NetFSD=netfsd:createNetFSDaemon \ + --NetFSD.ConfigPath=/etc/netfs/daemon.xml \ + --daemon --pidfile /var/run/netfsd.pid + eend $? +} + +stop() { + ebegin "Stopping NetFS daemon" + kill `cat /var/run/netfsd.pid` + eend $? +} + -- cgit v1.2.3