configs: atmel: at91sam9260eknf: update defconfig
[buildroot-gz.git] / package / domoticz / S99domoticz
bloba16cacadde555adce9580af3cd6e441fa0f039b4
1 #!/bin/sh
3 NAME=domoticz
4 PIDFILE=/var/run/$NAME.pid
5 DAEMON=/opt/domoticz/$NAME
6 DAEMON_ARGS="-daemon -www 8080 -sslwww 443"
8 start() {
9 printf "Starting $NAME: "
10 start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS
11 [ $? = 0 ] && echo "OK" || echo "FAIL"
13 stop() {
14 printf "Stopping $NAME: "
15 start-stop-daemon -K -q -p $PIDFILE
16 [ $? = 0 ] && echo "OK" || echo "FAIL"
18 restart() {
19 stop
20 start
23 case "$1" in
24 start)
25 start
27 stop)
28 stop
30 restart|reload)
31 restart
34 echo "Usage: $0 {start|stop|restart}"
35 exit 1
36 esac
38 exit $?