Create /var/lib/maxscale via systemd

Systemd provides the facilities to run commands before startup which can
be used to prevent the problem that fixing MXS-2578 caused: upon upgrading
from 2.3.8 to 2.3.9 the /var/lib/maxscale directory would be removed if it
was empty.
This commit is contained in:
Markus Mäkelä 2019-07-03 09:00:31 +03:00
parent 26ca7a98f8
commit 66d6ce6fa5
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -10,6 +10,7 @@ Restart=on-abort
# Make sure /var/run/maxscale exists
PermissionsStartOnly=true
ExecStartPre=/usr/bin/install -d @MAXSCALE_VARDIR@/run/maxscale -o maxscale -g maxscale
ExecStartPre=/usr/bin/install -d @MAXSCALE_VARDIR@/lib/maxscale -o maxscale -g maxscale
PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid