From 5558fbcf0b5be8a8f90e5b3609ae62dc7c27f84e Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 27 Jul 2021 16:46:11 +0200 Subject: #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= --- cfg/ogserver.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- cgit v1.2.3-18-g5258