aports/testing/apollo/apollo.initd
David Sugar c6d64b50e5 testing/apollo: new aport
This ties together a coventry phone system with a web management
front-end.
2024-03-09 23:42:01 +00:00

27 lines
463 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
name=apollo
command="/usr/sbin/apollo"
pidfile="/run/apollo.pid"
extra_started_commands="reload"
depend() {
use logger dns
need net
after coventry
}
stop() {
ebegin "Stopping ${RC_SVCNAME}"
start-stop-daemon --signal INT --pidfile "${pidfile}"
eend $? "Failed to stop ${RC_SVCNAME}"
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}