source: ogServer-Git/cfg/ogserver.service

Last change on this file was 5558fbc, checked in by OpenGnSys Support Team <soporte-og@…>, 8 days ago

#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=

  • Property mode set to 100644
File size: 305 bytes
Line 
1# ogserver systemd service file
2
3[Unit]
4Documentation=https://opengnsys.es/trac/wiki/En%%3ADocumentacionUsuario
5Description=OpenGnsys server
6Wants=mysql.service
7After=mysql.service
8
9[Install]
10WantedBy=multi-user.target
11
12[Service]
13ExecStart=/opt/opengnsys/sbin/ogserver -f /opt/opengnsys/etc/ogserver.json
Note: See TracBrowser for help on using the repository browser.