|
@@ -7,7 +7,7 @@ set -e
|
|
|
startGrafana() {
|
|
startGrafana() {
|
|
|
if [ -x /bin/systemctl ]; then
|
|
if [ -x /bin/systemctl ]; then
|
|
|
/bin/systemctl daemon-reload
|
|
/bin/systemctl daemon-reload
|
|
|
- /bin/systemctl start grafana-server
|
|
|
|
|
|
|
+ /bin/systemctl restart grafana-server
|
|
|
elif [ -x "/etc/init.d/grafana-server" ]; then
|
|
elif [ -x "/etc/init.d/grafana-server" ]; then
|
|
|
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
|
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
|
|
invoke-rc.d grafana-server restart || true
|
|
invoke-rc.d grafana-server restart || true
|