"/etc/init.d/syslog-ng reload" fails if SYSLOGNG_OPTS is set

Bug #649046 reported by Dan Urist
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
syslog-ng (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: syslog-ng

Versions affected: syslog-ng 3.1.2-1 in maverick and lucid backports.

Options for syslog-ng can be set directly in /etc/init.d/syslog-ng or in /etc/default/syslog-ng. If options are set, for example "--fd-limit 1024", then "/etc/init.d/syslog-ng reload" fails with the error:

    start-stop-daemon: unrecognized option '--fd-limit'

The issue is in the syslog-ng function, which contains the line:

      start-stop-daemon --stop --signal 1 --quiet --exec "$SYSLOGNG" \
                        --pidfile "$PIDFILE" $SYSLOGNG_OPTS

Instead, this should probably be:

    start-stop-daemon --stop --signal 1 --exec "$SYSLOGNG" \
                      --pidfile "$PIDFILE" -- -p "$PIDFILE" $SYSLOGNG_OPTS

Revision history for this message
Peter Czanik (pczanik) wrote :

Tested on Ubuntu 11.10 and the problem is fixed.

Gergely Nagy (algernon)
Changed in syslog-ng (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.