#!/usr/bin/openrc-run depend() { after avahi-daemon need avahi-daemon } start() { ebegin "Starting mandos server" start-stop-daemon --start -b \ --make-pidfile \ --pidfile /run/mandos.pid \ --stdout /var/log/mandos.stdout \ --stderr /var/log/mandos.stderr \ --exec /usr/bin/mandos -- \ --debug \ --configdir /etc/mandos eend $? } stop() { ebegin "Stopping mandos server" start-stop-daemon --stop \ --pidfile /run/mandos.pid \ --retry=TERM/20/KILL/5 eend $? }