diff options
Diffstat (limited to 'testing/mediaproxy/mediaproxy-relay.initd')
-rw-r--r-- | testing/mediaproxy/mediaproxy-relay.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/mediaproxy/mediaproxy-relay.initd b/testing/mediaproxy/mediaproxy-relay.initd new file mode 100644 index 000000000..73dc32aa2 --- /dev/null +++ b/testing/mediaproxy/mediaproxy-relay.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript + +daemon=/usr/bin/media-relay +pidfile=/var/run/mediaproxy/mediaproxy-relay.pid + +depend() { + need net + after firewall + after mediaproxy-dispatcher +} + +start() { + ebegin "Starting Mediaproxy Relay" + start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \ + -P $pidfile \ + eend $? +} + +stop() { + ebegin "Stopping Mediaproxy Relay" + start-stop-daemon --stop --quiet --pidfile $pidfile + eend $? +} |