diff options
Diffstat (limited to 'unmaintained/mediaproxy/mediaproxy-relay.initd')
-rw-r--r-- | unmaintained/mediaproxy/mediaproxy-relay.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/unmaintained/mediaproxy/mediaproxy-relay.initd b/unmaintained/mediaproxy/mediaproxy-relay.initd new file mode 100644 index 0000000000..09b842f072 --- /dev/null +++ b/unmaintained/mediaproxy/mediaproxy-relay.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript + +daemon=/usr/bin/media-relay +pidfile=/var/run/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 + eend $? +} + +stop() { + ebegin "Stopping Mediaproxy Relay" + start-stop-daemon --stop --quiet --pidfile $pidfile + eend $? +} |