You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/10/10 01:00:05 UTC

DO NOT REPLY [Bug 31614] New: - Patch to make jsvc delete pid file on daemon exit

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31614>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31614

Patch to make jsvc delete pid file on daemon exit

           Summary: Patch to make jsvc delete pid file on daemon exit
           Product: Commons
           Version: 1.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Daemon
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jberry@apache.org


The attached patch updates jsvc to cause it to delete the pid file on exit of the daemon process. This 
greatly eases and strengthens checking of whether the daemon process is still alive.

Because the daemon has dropped priviledges by the time it wants to exit, it is no longer able, itself, to 
delete the pid file as it's likely lost priviledges to the pid location. I moved creation/deleting of the pid 
file to the controller process: the controller creates the pid file when the child is forked, and deletes it 
when the child terminates.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org