[Freeswitch-users] How is -ncwait supposed to work?
Nathan Neulinger
nneul at mst.edu
Thu Mar 28 01:53:52 MSK 2013
Found the problem... It doesn't work as implemented if you're using "-u" and launching freeswitch initially as root -
problem is that the parent process is still running as root, child is running as the less privileged user, and can't
send SIGUSR2 to the parent.
The issue is that in src/switch.c main() - daemonize() is called prior to change_user_group(), just prior to the code
that sets the priority.
I'll put a Jira issue in with a suggested fix.
-- Nathan
On 03/27/2013 02:35 PM, Anthony Minessale wrote:
> correct.
>
>
> On Wed, Mar 27, 2013 at 2:30 PM, Nathan Neulinger <nneul at mst.edu <mailto:nneul at mst.edu>> wrote:
>
> I normally start with -nc, but have periodically tried using -ncwait, and what I find is that freeswitch terminates
> after it's fully up and running.
>
> I can diagnose further, but my understanding was that -ncwait was supposed to be equivalent to -nc, except it wouldn't
> fork until freeswitch was fully ready for fs_cli connections.
>
> Is that not correct?
>
> -- Nathan
>
> ------------------------------------------------------------
> Nathan Neulinger nneul at mst.edu <mailto:nneul at mst.edu>
> Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412>
> System Administrator - Architect
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <mailto:MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <mailto:sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
--
------------------------------------------------------------
Nathan Neulinger nneul at mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list