Summary: | Modify syslog-ng init script to specify pid for startup | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Doug Warner <doug> |
Component: | New packages | Assignee: | Mr. Bones. (RETIRED) <mr_bones_> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jer |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Doug Warner
2009-12-02 03:44:52 UTC
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 |