File: rtpproxy.in

package info (click to toggle)
rtpproxy 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,020 kB
  • ctags: 332
  • sloc: sh: 8,380; ansic: 5,195; xml: 698; makefile: 106
file content (31 lines) | stat: -rwxr-xr-x 549 bytes parent folder | download
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.1.2.2 2008/06/17 03:21:27 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:-"*"}

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

run_rc_command "${1}"