From cb01820cb357ba9987359d9b1452fdad16ced373 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 28 Jul 2012 19:10:44 +0200 Subject: add gentoo init scripts --- rodiscd.init.gentoo | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rodiscd.init.gentoo (limited to 'rodiscd.init.gentoo') 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 $? +} -- cgit v1.2.3