[Syslog-ng-maintainers] Bug#794585: systemd unit file does not read /etc/default/syslog-ng

Matthew Newton mcn4 at leicester.ac.uk
Tue Aug 4 17:31:21 BST 2015


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. <mcn4 at le.ac.uk>

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

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>




More information about the Syslog-ng-maintainers mailing list