add /bin/sh before prlimit command in service start

This commit is contained in:
Timofey Turenko
2019-01-30 23:31:45 +02:00
parent 45f85a2740
commit f0abe9cbdc

View File

@ -10,7 +10,7 @@ LimitCORE=infinity
# Make sure /var/run/maxscale exists # Make sure /var/run/maxscale exists
PermissionsStartOnly=true PermissionsStartOnly=true
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
ExecStartPost=prlimit -p $(pidof maxscale) --core=unlimited ExecStartPost=/bin/sh -c 'prlimit -p $(pidof maxscale) --core=unlimited'
PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid