aports/testing/bordeaux/bordeaux.initd
David Sugar 2f82d3034d testing/bordeaux: new aport
A generic and re-combinable telephony application server that can
include additional functionality for specific systems. Related to
coventry, and uses moderncli for common code.
2024-02-26 19:04:38 +00:00

28 lines
546 B
Bash

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