Skip to content

Commit ee88b0d

Browse files
committed
Merge pull request grafana#5282 from nazco/patch-1
restart grafana after upgrade
2 parents 25899b7 + 51878ae commit ee88b0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packaging/deb/control/postinst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ set -e
77
startGrafana() {
88
if [ -x /bin/systemctl ]; then
99
/bin/systemctl daemon-reload
10-
/bin/systemctl start grafana-server
10+
/bin/systemctl restart grafana-server
1111
elif [ -x "/etc/init.d/grafana-server" ]; then
1212
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
13-
invoke-rc.d grafana-server start || true
13+
invoke-rc.d grafana-server restart || true
1414
else
15-
/etc/init.d/grafana-server start || true
15+
/etc/init.d/grafana-server restart || true
1616
fi
1717
fi
1818
}

0 commit comments

Comments
 (0)