summaryrefslogtreecommitdiffstats
path: root/testing/mediaproxy/mediaproxy-dispatcher.initd
blob: 77364104c0a94d5d899b2f5d912226f90e3726e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 $?
}