diff --git a/etc/maxscale.service.in b/etc/maxscale.service.in index daa8bb81e..068bb342e 100644 --- a/etc/maxscale.service.in +++ b/etc/maxscale.service.in @@ -10,7 +10,7 @@ LimitCORE=infinity # Make sure /var/run/maxscale exists PermissionsStartOnly=true ExecStartPre=/usr/bin/install -d @MAXSCALE_VARDIR@/run/maxscale -o maxscale -g maxscale -ExecStartPost=prlimit -p $(pidof maxscale) --core=unlimited +ExecStartPost=/bin/sh -c 'prlimit -p $(pidof maxscale) --core=unlimited' PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid