[OpenSIPS-Devel] [ opensips-Patches-3606622 ] No-fork mode

SourceForge.net noreply at sourceforge.net
Mon Mar 11 17:54:19 CET 2013


Patches item #3606622, was opened at 2013-03-02 08:35
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3606622&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: trunk
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: No-fork mode

Initial Comment:
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.


----------------------------------------------------------------------

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2013-03-11 09:54

Message:
Hi Nick,

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

Best Regards,
Vlad

----------------------------------------------------------------------

Comment By: Nick Altmann (nikbyte)
Date: 2013-03-11 03:17

Message:
We can rename it to no_daemon_mode :-)

----------------------------------------------------------------------

Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2013-03-11 03:15

Message:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3606622&group_id=232389



More information about the Devel mailing list