diff options
-rw-r--r-- | netfs/etc/init | 20 |
1 files changed, 20 insertions, 0 deletions
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 $? +} + |