From 5017a62317c4020cb555c31bf3f4e53b385b8041 Mon Sep 17 00:00:00 2001 From: Jeff Bilyk Date: Wed, 9 Feb 2011 19:19:57 +0000 Subject: testing/rtpproxy: add init script and conf.d along with rtproxy user creation Adds an init script and conf.d file that were borrowed from Gentoos. Also create rtpproxy user and group --- testing/rtpproxy/rtpproxy.initd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testing/rtpproxy/rtpproxy.initd (limited to 'testing/rtpproxy/rtpproxy.initd') diff --git a/testing/rtpproxy/rtpproxy.initd b/testing/rtpproxy/rtpproxy.initd new file mode 100644 index 00000000..5e53e51e --- /dev/null +++ b/testing/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 $? +} + -- cgit v1.3