syslog-ng initscript does not use environment variables to locate its PIDFILE (hardcoded in script instead of using /etc/conf.d/syslog-ng) and does not pass the pidfile as argument to syslog Works in the default case because syslog-ng has /var/run/syslog-ng.pid as default path for pidfile. Reproducible: Always Steps to Reproduce: 0. stop syslog-ng 1. change all instances of "/var/run/syslog-ng.pid" to "/var/run/syslog-ng-2.pid" in /etc/init.d/syslog-ng 2. /etc/init.d/syslog-ng start 3. /etc/init.d/syslog-ng stop Actual Results: syslog-ng is still up Expected Results: syslog-ng should have been stopped syslog-ng still write its pidfile file to /var/run/syslog-ng.pid Options which should have been passed to syslog-ng -p, --pidfile=<pidfile> Set path to pid file an optional SYSLOG_NG_PIDFILE configuration variable should be added with default value "/var/run/syslog-ng.pid" syslog-ng options should be adjusted as follow : SYSLOG_NG_OPTS="$SYSLOG_NG_OPTS --pidfile $SYSLOG_NG_PIDFILE" and all hardcoded instances of pidfile in /etc/init.d/syslog-ng should use $SYSLOG_NG_PIDFILE same thing for SYSLOG_NG_CONFIGFILE which should default to /etc/syslog-ng/syslog-ng.conf and be passed as argument to syslog-ng with --cfgfile=
Why? Please explain the point of that change. Is there some additional functionality you're hoping for?
(In reply to comment #1) > Why? Please explain the point of that change. Is there some additional > functionality you're hoping for? > Cleanness and parametrability for easier customisation are the main points here. It's useful only when you would like to avoid modifying initscripts.
Covered by the changes for bug #373583