]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/packages/rtpproxy
2 ########################################################################
3 # Begin $rc_base/init.d/rtpproxy
13 ########################################################################
18 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/ethernet
/settings
)
22 SOCKET
="/var/run/rtpproxy.sock"
23 LISTEN
="${GREEN_ADDRESS}"
26 PIDFILE
="/var/run/rtpproxy.pid"
28 if [ -r "/etc/sysconfig/rtpproxy" ]; then
29 .
/etc
/sysconfig
/rtpproxy
34 boot_mesg
"Starting rtpproxy..."
35 loadproc
/usr
/bin
/rtpproxy
-u nobody
-p ${PIDFILE} \
36 -m ${PORT_MIN} -M ${PORT_MAX} -s ${SOCKET} \
37 -l ${LISTEN} ${CUSTOM_ARGS}
41 boot_mesg
"Stopping rtpproxy..."
42 killproc
/usr
/bin
/rtpproxy
46 boot_mesg
"Reloading rtpproxy..."
47 reloadproc
/usr
/bin
/rtpproxy
57 statusproc
/usr
/bin
/rtpproxy
61 echo "Usage: ${0} {start|stop|reload|restart|status}"
66 # End $rc_base/init.d/rtpproxy