projects/aports·blob master · refs

25 lines · 511 B

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
6PIDFILE=/var/run/rtpproxy.pid
7
8depend() {
9 need net
10}
11
12start() {
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
20stop() {
21 ebegin "Stopping rtpproxy"
22 start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
23 eend $?
24}
25