Package: syslog-ng-core
Version: 3.5.6-2+b1
Severity: normal
Tags: patch

Hi,

syslog-ng in Jessie does not read /etc/default/syslog-ng when
started with systemd, so additional parameters are not passed to
the daemon. (The sysv init script does read this file.)

The following patch to the unit file fixes the problem:

--- syslog-ng.service.orig  2015-08-04 17:23:15.202067744 +0100
+++ syslog-ng.service 2015-08-04 17:23:06.514010322 +0100
@@ -5,7 +5,8 @@
 [Service]
 Type=notify
 Sockets=syslog.socket
-ExecStart=/usr/sbin/syslog-ng -F
+EnvironmentFile=-/etc/default/syslog-ng
+ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS
 ExecReload=/bin/kill -HUP $MAINPID
 StandardOutput=null
 Restart=on-failure

Thanks,

Matthew


-- 
Matthew Newton, Ph.D. <[email protected]>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <[email protected]>


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to