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@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
correct. On Wed, Mar 27, 2013 at 2:30 PM, Nathan Neulinger <nneul@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@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
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@mst.edu <mailto:nneul@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@mst.edu <mailto:nneul@mst.edu> Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412> System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
participants (2)
-
Anthony Minessale
-
Nathan Neulinger