diff options
Diffstat (limited to 'testing/openxcap/openxcap.initd')
-rw-r--r-- | testing/openxcap/openxcap.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/openxcap/openxcap.initd b/testing/openxcap/openxcap.initd new file mode 100644 index 0000000000..e58a77926d --- /dev/null +++ b/testing/openxcap/openxcap.initd @@ -0,0 +1,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 $? +} + |