Changed maxscale.service restart values

The maxscale service will be restarted only if the process is down because
a signal was caught or the process times out. If the process would be restarted
when it exits with a non-zero value, this would lead to infinite loops when
there is a configuration error.
This commit is contained in:
Markus Makela
2015-12-17 10:23:47 +02:00
parent 8d969aadd1
commit 4b7cec504a

View File

@ -4,7 +4,7 @@ After=network.target
[Service] [Service]
Type=forking Type=forking
Restart=on-failure Restart=on-abnormal
PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid
ExecStartPre=/usr/bin/install -d @MAXSCALE_VARDIR@/run/maxscale -o maxscale -g maxscale ExecStartPre=/usr/bin/install -d @MAXSCALE_VARDIR@/run/maxscale -o maxscale -g maxscale
ExecStart=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale --user=maxscale ExecStart=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale --user=maxscale