Bugs: Browse | Submit New | Admin

[#28057] ar_sendmail - no pidfile when running as daemon

Date:
2010-04-07 08:09
Priority:
3
Submitted By:
Tim Peters (tcp)
Assigned To:
Eric Hodel (drbrain)
Category:
ar_mailer
State:
Open
Summary:
ar_sendmail - no pidfile when running as daemon

Detailed description
In ar_mailer 1.5.1, running as a daemon, the pid file is not written.

eg:
 ar_sendmail -d -p tmp/ar_sendmail.pid

Expect pidfile to be written, but it is not.

I've only quickly looked at the code, but it looks like WEBrick::Daemon.start is called before check_pid is called.
Perhaps moving the WEBrick stuff to just after check_pid would fix it.

Only a minor issue, but having the pid file is a nice way to reliably stop the process.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item