#265 No-fork mode

trunk
closed-fixed
core (47)
5
2013-03-11
2013-03-02
Nick Altmann
No

Sometimes we need no-fork mode for main process. For example to control opensips with daemon-tools or old buggy upstart.
This patch adds -F command-line option for daemon mode with foreground main process.

Discussion

    • assigned_to: nobody --> bogdan_iancu
     
    • assigned_to: bogdan_iancu --> vladut-paiu
     
  • Hi Nick,

    Looking at the patch, things seem ok, except for the fact that the naming seems a little confusing.
    I see that you introduce a new var, daemon_mode, and when it's set to 0, it will trigger forking & daemonizing.

    Am I missing something, or should we invert the daemon_mode meaning ?

    Best Regards,
    Vlad

     
  • Nick Altmann
    Nick Altmann
    2013-03-11

    We can rename it to no_daemon_mode :-)

     
    • status: open --> closed-fixed
     
  • Hi Nick,

    Yep, sounds about right :)
    Changed and committed on trunk. Thanks for the patch.

    Best Regards,
    Vlad