Last change
on this file since 2d68f8a was
5558fbc,
checked in by OpenGnSys Support Team <soporte-og@…>, 4 years 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] |
---|
4 | Documentation=https://opengnsys.es/trac/wiki/En%%3ADocumentacionUsuario |
---|
5 | Description=OpenGnsys server |
---|
6 | Wants=mysql.service |
---|
7 | After=mysql.service |
---|
8 | |
---|
9 | [Install] |
---|
10 | WantedBy=multi-user.target |
---|
11 | |
---|
12 | [Service] |
---|
13 | ExecStart=/opt/opengnsys/sbin/ogserver -f /opt/opengnsys/etc/ogserver.json |
---|
Note: See
TracBrowser
for help on using the repository browser.