mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add an After= DB ordering relation to systemd .service (#7903)
In systemd `After=` merely codes an ordering relation and does not start other units. Grafana needs to specify that it wants to start up _after_ either of the supported DB services have started, _if they start_. Enabling the database services, however, is out of scope for Grafana.
This commit is contained in:
parent
8aa00f9227
commit
68e6700663
@ -3,6 +3,7 @@ Description=Grafana instance
|
|||||||
Documentation=http://docs.grafana.org
|
Documentation=http://docs.grafana.org
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
After=postgresql.service mariadb.service mysql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/default/grafana-server
|
EnvironmentFile=/etc/default/grafana-server
|
||||||
|
@ -3,6 +3,7 @@ Description=Grafana instance
|
|||||||
Documentation=http://docs.grafana.org
|
Documentation=http://docs.grafana.org
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
After=postgresql.service mariadb.service mysql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/sysconfig/grafana-server
|
EnvironmentFile=/etc/sysconfig/grafana-server
|
||||||
|
Loading…
Reference in New Issue
Block a user