aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mediaproxy/mediaproxy-dispatcher.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-dispatcher.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-dispatcher.initd')
-rw-r--r--testing/mediaproxy/mediaproxy-dispatcher.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/mediaproxy/mediaproxy-dispatcher.initd b/testing/mediaproxy/mediaproxy-dispatcher.initd
new file mode 100644
index 0000000000..77364104c0
--- /dev/null
+++ b/testing/mediaproxy/mediaproxy-dispatcher.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+
+daemon=/usr/bin/media-dispatcher
+pidfile=/var/run/mediaproxy/mediaproxy-dispatcher.pid
+
+depend() {
+ need net
+ after firewall
+ after kamailio
+}
+
+start() {
+ ebegin "Starting Mediaproxy Dispatcher"
+ start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \
+ -- \
+ -u kamailio \
+ -g kamailio \
+ -P $pidfile \
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Mediaproxy Dispatcher"
+ start-stop-daemon --stop --quiet --pidfile $pidfile
+ eend $?
+}