diff --git a/packaging/deb/systemd/grafana-server.service b/packaging/deb/systemd/grafana-server.service index ea7193c55a6..a2eb6f1880a 100644 --- a/packaging/deb/systemd/grafana-server.service +++ b/packaging/deb/systemd/grafana-server.service @@ -3,6 +3,7 @@ Description=Grafana instance Documentation=http://docs.grafana.org Wants=network-online.target After=network-online.target +After=postgresql.service mariadb.service mysql.service [Service] EnvironmentFile=/etc/default/grafana-server diff --git a/packaging/rpm/systemd/grafana-server.service b/packaging/rpm/systemd/grafana-server.service index ec0ef7e804e..a6e02073d46 100644 --- a/packaging/rpm/systemd/grafana-server.service +++ b/packaging/rpm/systemd/grafana-server.service @@ -3,6 +3,7 @@ Description=Grafana instance Documentation=http://docs.grafana.org Wants=network-online.target After=network-online.target +After=postgresql.service mariadb.service mysql.service [Service] EnvironmentFile=/etc/sysconfig/grafana-server