#981 Use 'Wants' for mysql systemd unit dependency

Unnattended upgrades from Ubuntu can cause a stop and start of mysql
service, this in turn makes ogserver go down.

Avoid ogserver shutting down when mysql does. It's not necessary,
ogserver can report if it can't connect to the database.

'Wants' declare a weak dependency as described in
https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Wants=
master
Jose M. Guisado 2021-07-27 16:46:11 +02:00 committed by OpenGnSys Support Team
parent 047677bb4b
commit 5558fbcf0b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
[Unit]
Documentation=https://opengnsys.es/trac/wiki/En%%3ADocumentacionUsuario
Description=OpenGnsys server
Requires=mysql.service
Wants=mysql.service
After=mysql.service
[Install]