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.
16 lines
408 B
SYSTEMD
16 lines
408 B
SYSTEMD
[Unit]
|
|
Description=MariaDB MaxScale Database Proxy
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
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
|
|
TimeOutStartSec=120
|
|
LimitNOFILE=65535
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|