File: rtpproxy.in

package info (click to toggle)
rtpproxy 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,080 kB
  • ctags: 463
  • sloc: sh: 8,395; ansic: 6,219; xml: 788; makefile: 111
file content (31 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# $Id: rtpproxy.in,v 1.3 2008/06/17 03:34:50 sobomax Exp $
#

# Add the following lines to /etc/rc.conf to enable RTPproxy:
#
# rtpproxy_enable="YES"

# PROVIDE: rtpproxy
# REQUIRE: DAEMON
# BEFORE: ser openser

prefix=%%PREFIX%%

. %%RC_SUBR%%

name=rtpproxy
rcvar=`set_rcvar`

command="${prefix}/bin/rtpproxy"
pidfile="/var/run/rtpproxy.pid"

load_rc_config ${name}

rtpproxy_enable=${rtpproxy_enable:-"NO"}
rtpproxy_laddr=${rtpproxy_laddr:-"0.0.0.0"}

command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid"

run_rc_command "${1}"