aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mediaproxy/mediaproxy-relay.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2009-11-23 08:21:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-23 16:08:32 +0000
commit039a075196873c9e6aa4c7ae28542ce2337899df (patch)
tree5034709f75c8008fc93cd30c7bce6aab9cef4a63 /testing/mediaproxy/mediaproxy-relay.initd
parent747f84f6f9438cc43759309e57fda94e99f0b670 (diff)
downloadaports-039a075196873c9e6aa4c7ae28542ce2337899df.tar.bz2
aports-039a075196873c9e6aa4c7ae28542ce2337899df.tar.xz
testing/mediaproxy: Init files, default config and more makedependencies
Diffstat (limited to 'testing/mediaproxy/mediaproxy-relay.initd')
-rw-r--r--testing/mediaproxy/mediaproxy-relay.initd23
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 0000000000..73dc32aa25
--- /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 $?
+}