aports/testing/coventry/coventry.initd
David Sugar a02162d4f9 testing/coventry: new aport
Low-overhead sip telephony service for devices, can be managed
with config files and utilities included or as part of something
larger.
2024-02-24 14:29:00 +00:00

27 lines
487 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
name=coventry
command="/usr/sbin/coventry"
pidfile="/run/coventry.pid"
extra_started_commands="reload"
depend() {
use logger dns
need net
after firewall
}
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 $?
}