diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2011-02-27 15:42:52 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2011-03-02 09:19:53 +0000 |
commit | a3b37bc56a794d671a61ef4bfd177840d94ec2f8 (patch) | |
tree | a2804cad7fc352e38e13a8ad4a84163bc436922c /testing/openxcap/openxcap.initd | |
parent | f2962737b3575ab017763f49ee9df481a067b6e0 (diff) | |
download | aports-a3b37bc56a794d671a61ef4bfd177840d94ec2f8.tar.bz2 aports-a3b37bc56a794d671a61ef4bfd177840d94ec2f8.tar.xz |
testing/openxcap: upgrade to 2.0, fixed APKBUILD
Diffstat (limited to 'testing/openxcap/openxcap.initd')
-rw-r--r-- | testing/openxcap/openxcap.initd | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/testing/openxcap/openxcap.initd b/testing/openxcap/openxcap.initd index 69108afd8a..03286cce3d 100644 --- a/testing/openxcap/openxcap.initd +++ b/testing/openxcap/openxcap.initd @@ -1,23 +1,31 @@ #!/sbin/runscript -# +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -daemon=/usr/bin/openxcap -pidfile=/var/run/openxcap/openxcap.pid +INSTALL_DIR="/usr/bin" +RUNTIME_DIR="/var/run/openxcap" +DEFAULTS="/etc/default/openxcap" +SERVER="$INSTALL_DIR/openxcap" +PID="$RUNTIME_DIR/openxcap.pid" +OPTIONS="" +NAME="openxcap" +DESC="OpenXCAP server" depend() { - need net - after firewall + need net + after firewall } start() { - ebegin "Starting OpenXCAP Presence Server" - start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon - eend $? + ebegin "Starting $DESC: $NAME " + start-stop-daemon --start --quiet --pidfile $PID --exec $SERVER -- $OPTIONS + eend $? } -stop() { - ebegin "Stopping OpenXCAP Presence Server" - start-stop-daemon --stop --quiet --signal 15 --pidfile $pidfile - eend $? +stop () { + ebegin -n "Stopping $DESC: $NAME " + start-stop-daemon --stop --quiet --oknodo --signal 15 --pidfile $PID + eend $? } +exit 0 + |