diff options
Diffstat (limited to 'rodiscd.init.gentoo')
-rw-r--r-- | rodiscd.init.gentoo | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rodiscd.init.gentoo b/rodiscd.init.gentoo new file mode 100644 index 0000000..1541688 --- /dev/null +++ b/rodiscd.init.gentoo @@ -0,0 +1,22 @@ +#!/sbin/runscript + +command="/usr/sbin/${SVCNAME}" +pidfile="/var/run/${SVCNAME}.pid" + +depend() { + need avahi-daemon +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec "${command}" \ + --pidfile "${pidfile}" --make-pidfile --background + eend $? +} + +stop() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --stop --exec "${command}" \ + --pidfile "${pidfile}" + eend $? +} |