aboutsummaryrefslogblamecommitdiffstats
path: root/community/rtpengine/rtpengine.initd
blob: e4cc3fe29b4062c870584a19631ca006c47cb6b6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                           
                       


             
                                                                     
 
#!/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%/*}"
}