Skip to content

Single Fork Writes PID #16

@symkat

Description

@symkat

Single fork mode currently tries to write the PID file, although this is not the documented behavior.

Single-fork was meant explicitly to just give you start/stop/restart functionality for something that will otherwise daemonize itself. Part of daemonizing itself is writing the PID file, since something daemonizing should follow the standard double-fork, therefore I cannot know what the PID of the eventually-lauched process is.

Daemon::Control writing to the PID file in this case is a bug.

[ ] Remove the writing of the PID file in sub _fork
[ ] Confirm the rest of the code is sane in single fork mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions