summarylogtreecommitdiffstats
path: root/courier-imapd.service
diff options
context:
space:
mode:
authorrunnytu2018-02-10 22:24:33 +0100
committerrunnytu2018-02-10 22:24:33 +0100
commit87b1c97ae9165dac27bd6cba131c4c52e1e038d1 (patch)
tree807978fe9fe6776d2e464944a523af827e7e4304 /courier-imapd.service
parent9f282bab6ec390219ac43d7e746c8eb62b95773a (diff)
downloadaur-87b1c97ae9165dac27bd6cba131c4c52e1e038d1.tar.gz
Update to sysusers and fix strict PIDs
Diffstat (limited to 'courier-imapd.service')
-rw-r--r--courier-imapd.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/courier-imapd.service b/courier-imapd.service
index 5ef45851de6..2adbabfe18c 100644
--- a/courier-imapd.service
+++ b/courier-imapd.service
@@ -5,10 +5,13 @@ After=authdaemond.service
[Service]
Type=forking
+User=courier
+Group=courier
EnvironmentFile=/etc/courier-imap/imapd
ExecStart=/usr/lib/courier-imap/imapd.rc start
ExecStop=/usr/lib/courier-imap/imapd.rc stop
PIDFile=/var/run/courier/imapd.pid
+AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID
[Install]
WantedBy=multi-user.target