aports/community/rtpengine/rtpengine.initd
2020-12-07 16:20:05 +00:00

18 lines
375 B
Plaintext
Executable File

#!/sbin/openrc-run
command="/usr/bin/${RC_SVCNAME}"
command_args="--foreground --config-file /etc/rtpengine/${RC_SVCNAME}.conf"
command_background="yes"
: ${command_user:="rtpengine:rtpengine"}
pidfile="/run/rtpengine/${RC_SVCNAME}.pid"
depend() {
need net
after firewall
before kamailio
}
start_pre() {
checkpath --directory --owner "$command_user" "${pidfile%/*}"
}