diff options
author | randomdan <randomdan@localhost> | 2010-10-21 00:02:25 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-10-21 00:02:25 +0000 |
commit | 41d4cec7c5ad90f0944c8f0b707b0d3265a645c8 (patch) | |
tree | d7c29394113bbbf634c87436ac280bed930cc262 | |
parent | Commit WTD basic FS works (diff) | |
download | netfs-41d4cec7c5ad90f0944c8f0b707b0d3265a645c8.tar.bz2 netfs-41d4cec7c5ad90f0944c8f0b707b0d3265a645c8.tar.xz netfs-41d4cec7c5ad90f0944c8f0b707b0d3265a645c8.zip |
Add init script
-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 $? +} + |