FS#63231 - [grafana] systemd service After= tag

Attached to Project: Community Packages
Opened by danieltetraquark (danieltetraquark) - Friday, 19 July 2019, 14:41 GMT
Last edited by Jelle van der Waa (jelly) - Tuesday, 03 September 2019, 10:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Missing "After=" tag in grafana summary leads to systemd trying to start grafana prior to database backend and thus fails.

Upstream uses
```
After=postgresql.service mariadb.service mysqld.service
```

Steps to reproduce: configure grafana with a db backend (mysql/postgresql/…), enable its service, reboot. The service grafana.service will fail because the database backend is not yet started.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Tuesday, 03 September 2019, 10:55 GMT
Reason for closing:  Implemented
Additional comments about closing:  6.3.5-1
Comment by Jelle van der Waa (jelly) - Sunday, 01 September 2019, 13:26 GMT
Will consider this if it still keeps working for non db users
Comment by danieltetraquark (danieltetraquark) - Sunday, 01 September 2019, 19:25 GMT
It should still work for non db users (since it is also working for users who don't have postgres, mariadb AND mysql installed)

```
Before=, After=

A space-separated list of unit names. Configures ordering dependencies between units. If a unit foo.service contains a setting Before=bar.service and both units are being started, bar.service's start-up is delayed until foo.service is started up. Note that this setting is independent of and orthogonal to the requirement dependencies as configured by Requires=
```

Loading...