]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dovecot.service: Fixed PIDFile path
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 19 Feb 2016 14:11:58 +0000 (16:11 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 19 Feb 2016 14:11:58 +0000 (16:11 +0200)
Makefile.am
dovecot.service.in

index 67cbd5cc6c7558f44199be0216f95c6d86312067..a7be896d2fde91ee7f0703b2a89b60dbbbfc5acb 100644 (file)
@@ -47,7 +47,7 @@ dovecot-config: dovecot-config.in Makefile
 
 if HAVE_SYSTEMD
 %.service: %.service.in
-       $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' -e 's,@bindir\@,$(bindir),g' -e 's,@statedir\@,$(statedir),g' $< > $@
+       $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' -e 's,@bindir\@,$(bindir),g' -e 's,@rundir\@,$(rundir),g' $< > $@
 
 systemdsystemunit_DATA = \
         dovecot.socket \
index 8b4c76d226e30069109dd4a1735ebf7e6c21baba..d4ad79d894e78e8aef54e66619f73b790087c82f 100644 (file)
@@ -25,7 +25,7 @@ After=local-fs.target network.target
 [Service]
 Type=forking
 ExecStart=@sbindir@/dovecot
-PIDFile=@statedir@dovecot/master.pid
+PIDFile=@rundir@/dovecot/master.pid
 ExecReload=@bindir@/doveadm reload
 ExecStop=@bindir@/doveadm stop
 PrivateTmp=true