| 1 | #!/sbin/openrc-run |
| 2 | # Copyright 1999-2010 Gentoo Foundation |
| 3 | # Distributed under the terms of the GNU General Public License, v2 or later |
| 4 | # $Header$ |
| 5 | |
| 6 | PIDFILE=/var/run/rtpproxy.pid |
| 7 | |
| 8 | depend() { |
| 9 | need net |
| 10 | } |
| 11 | |
| 12 | start() { |
| 13 | ebegin "Starting rtpproxy" |
| 14 | start-stop-daemon --start --quiet --pidfile "${PIDFILE}" \ |
| 15 | --exec /usr/bin/rtpproxy \ |
| 16 | -- -urtpproxy:rtpproxy -p"${PIDFILE}" ${RTPPROXY_OPTS} |
| 17 | eend $? |
| 18 | } |
| 19 | |
| 20 | stop() { |
| 21 | ebegin "Stopping rtpproxy" |
| 22 | start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" |
| 23 | eend $? |
| 24 | } |
| 25 | |