diff options
author | Tim Biermann <tbier@posteo.de> | 2021-10-10 17:38:39 +0200 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2021-10-10 17:40:05 +0200 |
commit | 3daeb7ed1e049cdc2f440937b0c6309db6ec5b02 (patch) | |
tree | 7d8c8dae0c49487625af84ab765adafc641142ce /grafana/grafana.service | |
parent | b414fc71f4c39160eeed226585d6c6ffec8fba1f (diff) | |
download | contrib-3daeb7ed1e049cdc2f440937b0c6309db6ec5b02.tar.gz contrib-3daeb7ed1e049cdc2f440937b0c6309db6ec5b02.tar.xz |
[notify] grafana: 8.1.7 -> 8.2.0; new dependencies: git and yarn
Diffstat (limited to 'grafana/grafana.service')
-rwxr-xr-x | grafana/grafana.service | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/grafana/grafana.service b/grafana/grafana.service index 9e6859e11..7bb9eb162 100755 --- a/grafana/grafana.service +++ b/grafana/grafana.service @@ -4,32 +4,32 @@ # SSD=/sbin/start-stop-daemon -PROG=/usr/sbin/grafana-server +PROG=/usr/bin/grafana-server OPTS="--homepath /usr/share/grafana" case $1 in -start) - $SSD --start -b --exec $PROG -- $OPTS - ;; -stop) - $SSD --stop --retry 10 --exec $PROG - ;; -restart) - $0 stop - $0 start - ;; -status) - $SSD --status --exec $PROG - case $? in - 0) echo "$PROG is running with pid $(pidof $PROG)" ;; - 1) echo "$PROG is not running but the pid file $PID exists" ;; - 3) echo "$PROG is not running" ;; - 4) echo "Unable to determine the program status" ;; - esac - ;; -*) - echo "usage: $0 [start|stop|restart|status]" - ;; + start) + $SSD --start -b --exec $PROG -- $OPTS + ;; + stop) + $SSD --stop --retry 10 --exec $PROG + ;; + restart) + $0 stop + $0 start + ;; + status) + $SSD --status --exec $PROG + case $? in + 0) echo "$PROG is running with pid $(pidof $PROG)" ;; + 1) echo "$PROG is not running but the pid file $PID exists" ;; + 3) echo "$PROG is not running" ;; + 4) echo "Unable to determine the program status" ;; + esac + ;; + *) + echo "usage: $0 [start|stop|restart|status]" + ;; esac # End of file |