diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-07-27 16:46:11 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-07-27 17:12:40 +0200 |
commit | 5558fbcf0b5be8a8f90e5b3609ae62dc7c27f84e (patch) | |
tree | 38886096417528ebcca167a5aa83a2c262f214bc | |
parent | 047677bb4b8a9273222048cef44bbc389bece932 (diff) |
#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=
-rw-r--r-- | cfg/ogserver.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg/ogserver.service b/cfg/ogserver.service index fac1c6a..395c8e9 100644 --- a/cfg/ogserver.service +++ b/cfg/ogserver.service @@ -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] |