diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-02-09 19:23:39 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-02-09 19:40:22 -0600 |
commit | 19057f79c2bfa546d2badfcab7bd036b96b6db64 (patch) | |
tree | 9e7be195e5939a7851820c22caae9e083a172e03 /main/rtpproxy/rtpproxy.initd | |
parent | 5017a62317c4020cb555c31bf3f4e53b385b8041 (diff) | |
download | aports-19057f79c2bfa546d2badfcab7bd036b96b6db64.tar.bz2 aports-19057f79c2bfa546d2badfcab7bd036b96b6db64.tar.xz |
main/rtpproxy: moved from testing
moved rtpproxy to main
Diffstat (limited to 'main/rtpproxy/rtpproxy.initd')
-rw-r--r-- | main/rtpproxy/rtpproxy.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/rtpproxy/rtpproxy.initd b/main/rtpproxy/rtpproxy.initd new file mode 100644 index 0000000000..5e53e51e88 --- /dev/null +++ b/main/rtpproxy/rtpproxy.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header$ + +PIDFILE=/var/run/rtpproxy.pid + +depend() { + need net +} + +start() { + ebegin "Starting rtpproxy" + start-stop-daemon --start --quiet --pidfile "${PIDFILE}" \ + --exec /usr/bin/rtpproxy \ + -- -urtpproxy:rtpproxy -p"${PIDFILE}" ${RTPPROXY_OPTS} + eend $? +} + +stop() { + ebegin "Stopping rtpproxy" + start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" + eend $? +} + |