On 05/10/2015 04:01 PM, Thomas Leuxner wrote:
> ... Not sure how it is supposed to interact with the file 
> /etc/default/dovecot and its ALLOW_COREDUMPS=1 variable, but one needs to 
> explicitly add LimitCORE=infinity in the 'Service' section (until someone 
> with more systemd foo fixes it):
> 

The attached patch could solve the problem.


Regards,
Pascal
-- 
The trapper recommends today: cafebabe.1513...@localdomain.org
diff -urN dovecot-core.org/etc/default/dovecot dovecot-core/etc/default/dovecot
--- dovecot-core.org/etc/default/dovecot	2015-04-10 22:23:00.000000000 +0000
+++ dovecot-core/etc/default/dovecot	2015-05-10 17:17:57.980476636 +0000
@@ -3,5 +3,11 @@
 # Set to '0' to explicitly disable starting Dovecot
 #ENABLED=0
 
+# SysV configuration
 # Set to '1' to allow Dovecot daemons to produce core dumps
 #ALLOW_COREDUMPS=1
+
+# systemd configuration
+# Set to 'infinity' to allow Dovecot daemons to produce core dumps.
+# See also setrlimit(2)
+LimitCORE=
diff -urN dovecot-core.org/lib/systemd/system/dovecot.service dovecot-core/lib/systemd/system/dovecot.service
--- dovecot-core.org/lib/systemd/system/dovecot.service	2015-05-10 14:36:00.000000000 +0000
+++ dovecot-core/lib/systemd/system/dovecot.service	2015-05-10 17:23:28.985272494 +0000
@@ -3,6 +3,8 @@
 After=local-fs.target network.target
 
 [Service]
+EnvironmentFile=-/etc/default/dovecot
+LimitCORE=$LimitCORE
 Type=simple
 ExecStart=/usr/sbin/dovecot -F
 NonBlocking=yes

Reply via email to