python-treq: bump to version 16.12.0
[buildroot-gz.git] / package / upmpdcli / S99upmpdcli
blob71d19a58e5d364e3e58986e729a043bc057883ec
1 #!/bin/sh
3 NAME=upmpdcli
4 DAEMON=/usr/bin/$NAME
5 CONFFILE=/etc/$NAME.conf
6 PIDFILE=/var/run/$NAME.pid
7 DAEMON_ARGS="-D -c $CONFFILE"
9 # Sanity checks
10 test -f $DAEMON || exit 0
12 start() {
13 printf "Starting $NAME: "
14 start-stop-daemon --start --quiet --background --exec $DAEMON \
15 -- $DAEMON_ARGS \
16 && echo "OK" || echo "FAIL"
19 stop() {
20 printf "Stopping $NAME: "
21 start-stop-daemon --stop --quiet --pidfile $PIDFILE \
22 && echo "OK" || echo "FAIL"
25 case "$1" in
26 start)
27 start
29 stop)
30 stop
32 restart)
33 stop
34 sleep 1
35 start
38 echo "Usage: $0 {start|stop|restart}"
39 exit 1
40 esac