ayaports/unmaintained/grumble/grumble.initd

27 lines
506 B
Text
Raw Normal View History

2021-06-04 15:24:22 +00:00
#!/sbin/openrc-run
name="Grumble"
logfile="/var/log/grumble/grumble.log"
pidfile="/run/grumble.pid"
depend() {
use net
}
start() {
ebegin "Starting grumble"
start-stop-daemon --start --background \
--user="grumble" \
--make-pidfile --pidfile="${pidfile}" \
--stdout "${logfile}" --stderr "${logfile}" \
--exec /usr/bin/env -- /usr/bin/grumble
eend $?
}
stop() {
ebegin "Stopping grumble"
start-stop-daemon --stop \
--pidfile=${pidfile} \
eend $?
}