Skip to content

Commit

Permalink
dovecot: improve systemd support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aki Tuomi authored and sirainen committed Feb 18, 2016
1 parent ebcd7cf commit 53cc71c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -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' $< > $@
$(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' -e 's,@bindir\@,$(bindir),g' -e 's,@statedir\@,$(statedir),g' $< > $@

systemdsystemunit_DATA = \
dovecot.socket \
Expand Down
11 changes: 8 additions & 3 deletions dovecot.service.in
Expand Up @@ -23,9 +23,14 @@ Documentation=http://wiki2.dovecot.org/
After=local-fs.target network.target

[Service]
Type=simple
ExecStart=@sbindir@/dovecot -F $OPTIONS
ExecReload=@sbindir@/dovecot reload
Type=forking
ExecStart=@sbindir@/dovecot
PIDFile=@statedir@dovecot/master.pid
ExecReload=@bindir@/doveadm reload
ExecStop=@bindir@/doveadm stop
ProtectSystem=full
ProtectHome=false
PrivateTmp=true
NonBlocking=yes

[Install]
Expand Down

0 comments on commit 53cc71c

Please sign in to comment.