Don't restart even on abnormal failures
If systemd restarts MaxScale when an abnormal exit is detected, it is likely to happen again. This leads into a loop which causes multiple maxscale processes on the same machine. One example of this behavior is when systemd times MaxScale out when it is starting.
This commit is contained in:
@ -4,7 +4,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
Restart=on-abnormal
|
Restart=no
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user