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:
@ -4,7 +4,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=on-failure
|
||||
Restart=on-abnormal
|
||||
PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid
|
||||
ExecStartPre=/usr/bin/install -d @MAXSCALE_VARDIR@/run/maxscale -o maxscale -g maxscale
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale --user=maxscale
|
||||
|
Reference in New Issue
Block a user