From 6ea209d13a192baf31d1d4e9a68644e44ddedcf2 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Wed, 25 Nov 2015 06:35:11 +0200 Subject: [PATCH] Added a timeout for the systemd script The fact that the maxscale process exits only after all services have been started means that systemd will kill the maxscale process if starting the services takes too long. Since the user authentication data is loaded on startup and can take up a long time, there needs to be a longer than default timeout for systems that use systemd. --- etc/maxscale.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/maxscale.service.in b/etc/maxscale.service.in index 055016f8d..f21de6e7b 100644 --- a/etc/maxscale.service.in +++ b/etc/maxscale.service.in @@ -8,6 +8,7 @@ Restart=on-failure 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]