#!/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 "Stopping ${SVCNAME}" start-stop-daemon --stop --exec "${command}" \ --pidfile "${pidfile}" eend $? }