summaryrefslogtreecommitdiffstats
path: root/testing/mediaproxy/mediaproxy-dispatcher.initd
blob: 9b37a7e06412ffef55edb52387b7bb0c40fff95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript

daemon=/usr/bin/media-dispatcher
pidfile=/var/run/mediaproxy/dispatcher.pid

depend() {
	need net
	after firewall
	after kamailio
}

start() {
	ebegin "Starting Mediaproxy Dispatcher"
	start-stop-daemon --start --verbose --pidfile $pidfile --exec $daemon 
	eend $?
}

stop() {
	ebegin "Stopping Mediaproxy Dispatcher"
	start-stop-daemon --stop --quiet --pidfile $pidfile
	eend $?
}