It would be helpful if the call to start-stop-daemon specified the pid file used for syslog-ng. This would allow people to run multiple copies of syslog-ng simultaneously in order to take advantage of multiple processes when not using db-destinations (file, pipe, or program destinations are single-threaded only). package: app-admin/syslog-ng-3.0.4 Reproducible: Always Steps to Reproduce:
Did you mean that it should be possible to set the pid to use in the conf.d script? Because it already does specify a pid to use in the init.d script.
In the start() part of the init script where start-stop-script is called, since the pid isn't specified to start-stop-script, running multiple copies of syslog-ng won't be allowed (start-stop-script sees another "syslog-ng" is running and won't start another one). --- /etc/init.d/syslog-ng 2009-06-05 21:18:46.000000000 -0400 +++ syslog-ng 2009-12-03 15:32:52.000000000 -0500 @@ -36,7 +36,7 @@ checkconfig || return 1 ebegin "Starting syslog-ng" [ -n "${SYSLOG_NG_OPTS}" ] && SYSLOG_NG_OPTS="-- ${SYSLOG_NG_OPTS}" - start-stop-daemon --start --quiet --exec /usr/sbin/syslog-ng ${SYSLOG_NG_OPTS} + start-stop-daemon --start -p /var/run/syslog-ng.pid --exec /usr/sbin/syslog-ng ${SYSLOG_NG_OPTS} eend $? "Failed to start syslog-ng" }
added to the 3.0.5 init script