Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#8449 closed defect (fixed)

syslog-ng init script, PID file test

Reported by: eschoeller@… Owned by: jow
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Backfire 10.03.1 RC3
Keywords: Cc:

Description (last modified by jow)

The syslog-ng script's reload() function sends a HUP signal to the PID specified in /var/run/syslog-ng.pid, however syslog-ng is never started with '-p /var/run/syslog-ng.pid' so the reload function fails, because it has no PID file to cat.

The start() function would just need to be modified like such:

[ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng -p /var/run/syslog-ng.pid

instead of:

[ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng

Then this will work:

kill -HUP `cat /var/run/syslog-ng.pid` &>/dev/null

Attachments (0)

Change History (3)

comment:2 Changed 7 years ago by jow

  • Description modified (diff)
  • Owner changed from developers to jow
  • Status changed from new to accepted

comment:3 Changed 6 years ago by swalker

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r30168.

comment:4 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.