From 8be833640f7938dd4542e7ed9da2f74935c3e045 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Mon, 12 Sep 2016 09:35:11 +0300 Subject: [PATCH] Change restart type to on-abort MaxScale should only restart if an abort is detects, i.e. MaxScale crashes. --- etc/maxscale.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/maxscale.service.in b/etc/maxscale.service.in index 982cbc00b..84b76bcc3 100644 --- a/etc/maxscale.service.in +++ b/etc/maxscale.service.in @@ -4,7 +4,7 @@ After=network.target [Service] Type=forking -Restart=no +Restart=on-abort 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