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

daemon=/usr/bin/openxcap
pidfile=/var/run/openxcap/openxcap.pid

depend() {
	 need net
	 after firewall
}

start() {
    	ebegin "Starting OpenXCAP Presence Server"
	start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon
	eend $?
}

stop() {
   	ebegin "Stopping OpenXCAP Presence Server"
	start-stop-daemon --stop --quiet --signal 15 --pidfile $pidfile
	eend $?
}