sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / neard / S53neard
blobf515668389acb05972f81222ad709309987864f1
1 #!/bin/sh
3 # Starts neard
6 NAME=neard
7 DAEMON=/usr/libexec/nfc/$NAME
9 # Exit gracefully if the package has been removed
10 [ -x $DAEMON ] || exit 0
12 case "$1" in
13 start)
14 printf "Starting $NAME: "
15 start-stop-daemon -S -q -p /var/run/${NAME}.pid -x $DAEMON -- -d '*'
16 echo "OK"
18 stop)
19 printf "Stopping $NAME: "
20 start-stop-daemon -K -q -p /var/run/${NAME}.pid
21 echo "OK"
23 restart|reload)
24 $0 stop
25 sleep 1
26 $0 start
29 echo "Usage: $0 {start|stop|restart}"
30 exit 1
31 esac
33 exit $?