ayaports/unmaintained/mumble-web-proxy/mumble-web-proxy.initd
build@apk-groulx 7c2d413554 3.17 cleanup
2023-01-11 00:40:45 +00:00

26 lines
605 B
Text

#!/sbin/openrc-run
name="Mumble web proxy"
logfile="/var/log/mumble-web-proxy/mumble-web-proxy.log"
pidfile="/run/mumble-web-proxy.pid"
depend() {
use net
}
start() {
ebegin "Starting Mumble web proxy"
start-stop-daemon --start --background \
--user="mumble" \
--make-pidfile --pidfile="${pidfile}" \
--stdout "${logfile}" --stderr "${logfile}" \
--exec /usr/bin/env -- /usr/bin/mumble-web-proxy --config /etc/mumble-web-proxy.conf
eend $?
}
stop() {
ebegin "Stopping Mumble web proxy"
start-stop-daemon --stop \
--pidfile=${pidfile} \
eend $?
}