aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mediaproxy/mediaproxy-relay.initd
blob: 09b842f07291ce167b4a334546d6a3c0c55d9f5b (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-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 $?
}