summaryrefslogtreecommitdiffstats
path: root/testing/sems/sems.initd
blob: 9cf98a185ec2f0e6597005f1d8109f8dcdc69742 (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
27
#!/sbin/runscript

daemon=/usr/sbin/sems
pidfile=/var/run/sems/sems.pid
conffile=/etc/sems/sems.conf

depend() {
	need net
	after firewall
}

start() {
	ebegin "Starting sems"
	start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \
		-- \
		-u sems \
		-g sems \
		-P $pidfile \
		-f $conffile
	eend $?
}

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