<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Some reasons this should not be done for OS X (or any other distort IMHO):<div class=""><br class=""></div><div class="">1. Setting up FreeSWITCH to run all the time is something the install should not do by default since people want to test and configure before auto starting is needed. They won’t want to auto starting until they are ready.</div><div class=""><br class=""></div><div class="">2. I have been doing FreeSwitch since OS X 10.6 and what I am very concerned about is that Apple changes things, it’s easier to update the wiki than wind up with a broken install having to wait on fixes. </div><div class=""><br class=""></div><div class="">3. OS X users don’t have to use launchd if they want to use the simpler less complex login option I documented.</div><div class=""><br class=""></div><div class="">I won’t use any FS supplied lunchd because I don’t start freeswitch from the plist. I start using a script which has huge advantages, it’s in the wiki. You are opening a can of worms adding launchd to the install for OS X. For OS X <i class="">please</i> leave this one out. Forget about over-thinking the problem, there is no problem to fix in this case. </div><div class=""><div class=""><br class=""></div><div class="">I am not sure what the thinking is on where config goes, but right now I can copy FreeSwitch and it’s associated config files in a single folder. Makes it easy to backout, test, etc. I don’t care how they are organized but I hope they are all within the freeswitch directly as they are now.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Feb 17, 2016, at 11:47 AM, Sergey Safarov <<a href="mailto:s.safarov@gmail.com" class="">s.safarov@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Mario<div class="">I has find that my mac has over 17000 plist files. launchd is widely used in macs. As example</div><div class=""><p class=""><span class="">safarov-mac:~ root# find / -name "*.plist" | wc -l<br class=""></span>find: /dev/fd/3: Not a directory<br class="">find: /dev/fd/4: Not a directory<br class=""> 17849</p><p class="">safarov-mac:~ root# uname -a<br class="">Darwin safarov-mac.home 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 19:41:34 PDT 2015; root:xnu-3247.1.106~5/RELEASE_X86_64 x86_64</p></div><div class=""><p class=""><span class=""><span style="font-size:12.8px" class="">"<font color="#0000ff" class="">Not sure why you need to add this to FreeSwitch config/install for OS X but I documented auto startup for OS X here:</font>"<br class=""></span></span>I am speak about how to use system launch daemons to manages FS modules. It is more wide then simple run process in MacOS.</p><p class=""><span class="">"<font color="#0000ff" class="">And for OS X config should all be in one place as it is now. Otherwise there could be permissions problems, etc.</font>"<br class="">If FS files owner is freeswitch user and freeswitch user has permission to read/write/execute permission on files, then what permission problem may be exist? What is mean "one place"? FS config files is stored in separate files and this files is merged to one by preprocessor. I think will be helpfull to preproces config files for each section (configuration, directory, dialplan) separately. What is wrong?</span></p><p class="">To Bote.<br class="">"<font color="#0000ff" class="">Agreed. There is danger in over-thinking the problem.</font>"</p><p class="">I known systemd. It easy to do it.<br class="">Think implementation this for launchd is will be similar. </p><p class=""><span class="">Sergey</span></p><p class=""><span class=""><br class=""></span></p><div class=""><span class=""> </span><br class="webkit-block-placeholder"></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Feb 17, 2016 at 8:02 PM, Mario G <span dir="ltr" class=""><<a href="mailto:mario_fs@mgtech.com" target="_blank" class="">mario_fs@mgtech.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Not sure why you need to add this to FreeSwitch config/install for OS X but I documented auto startup for OS X here:<div class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/Customization+on+OS+X#CustomizationonOSX-AutomaticStartupandShutdown" target="_blank" class="">https://freeswitch.org/confluence/display/FREESWITCH/Customization+on+OS+X#CustomizationonOSX-AutomaticStartupandShutdown</a></div><div class=""><br class=""></div><div class="">And for OS X config should all be in one place as it is now. Otherwise there could be permissions problems, etc.<div class=""><div class="h5"><br class=""><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Feb 17, 2016, at 6:53 AM, Sergey Safarov <<a href="mailto:s.safarov@gmail.com" target="_blank" class="">s.safarov@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Oops. Systemd error :o)<div class=""><br class=""></div><div class="">I made smal search and find:</div><div class="">1) MacOS systemd alternative - launchd</div><div class="">2) BSD systemd alternative - relaunchd</div><div class=""><div class="">3) Windows systemd alternative - SCM</div></div><div class=""><br class=""></div><div class=""><a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html" target="_blank" class="">launchd (MacOS)</a><br class=""></div><div class=""><div class="">DEPENDENCIES</div><div class=""> Unlike many bootstrapping daemons, launchd has no explicit dependency model. Interdependencies are</div><div class=""> expected to be solved through the use of IPC. It is therefore in the best interest of a job developer</div><div class=""> who expects dependents to define all of the sockets in the configuration file. This has the added bene-fit benefit</div><div class=""> fit of making it possible to start the job based on demand instead of immediate</div></div><div class="">Please read "<a href="https://wiki.afp548.com/index.php/Launch_Daemons/Agents_in_OS_X#The_launchd_Startup_Process" target="_blank" class="">The launchd Startup Process</a>" and "<a href="https://wiki.afp548.com/index.php/Launch_Daemons/Agents_in_OS_X#The_launchd_Startup_Process" target="_blank" class="">How to communicate with a LaunchAgent via Unix Sockets?</a>"<br class=""></div><div class=""><br class=""></div><div class=""><a href="https://github.com/mheily/relaunchd" target="_blank" class="">relaunchd(BSD)</a><br class=""></div><div class="">This tool is not installed to FreeBSD in default configuration. But may be installed and used like launchd in MacOS.</div><div class=""><br class=""></div><div class=""><a href="https://technet.microsoft.com/ru-ru/library/aa998749(v=exchg.65).aspx" target="_blank" class="">SCM(Windows)</a></div><div class="">DependOnService - Lists the names of Windows services on which this service depends. SCM must start these services before it starts this service. This value can be an empty string if the service has no dependencies.<br class=""></div><div class="">One more <a href="http://support.voiceelements.com/index.php?title=How_to_Add_Service_Dependencies" target="_blank" class="">link</a></div><div class=""><br class=""></div><div class="">PS. About changes I will write late.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Feb 17, 2016 at 4:28 PM, Brian West <span dir="ltr" class=""><<a href="mailto:brian@freeswitch.org" target="_blank" class="">brian@freeswitch.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Now you're thinking linux only, now apply your mindset to Mac, Windows, *BSD, have you reviewed the changes I've made last week to the sample configs in the fsconfig18 repo?</div><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Feb 17, 2016 at 4:12 AM, Sergey Safarov <span dir="ltr" class=""><<a href="mailto:s.safarov@gmail.com" target="_blank" class="">s.safarov@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hello FSs<div class="">At present time FS config file is solid. Loaded ones at startup for all modules. Also module loading is executed as modules listed in modules.conf</div><div class=""><br class=""></div><div class="">I think FS get more flexibility if config files will be spited of pisses for each module and modules will be loaded using systemd.</div><div class="">Example:</div><div class="">1) freeswitch.service contain strings "Requires=freeswitch-config.service freeswitch-directory.service freeswitch-dialplan.service"</div><div class="">2) freeswitch-config.service contains string "Wants= freeswitch-mod-sofia.service freeswitch-mod-dptools.service freeswitch-mod-lua.service"</div><div class="">3) freeswitch-mod-*.service unit files contains strings "<span class="">ExecStart=/usr/bin/freeswitch -x 'load <mod_module>'</span>". Where <<span class="">mod_module</span>> is name of module</div><div class="">4) freeswitch-directory.service contains string like <span class="">ExecStart=/usr/bin/freeswitch -x 'load directory'</span>"</div><div class=""><br class=""></div><div class="">This case of loading FS has following features:</div><div class="">1) management of module dependency and module loading order via systemd;</div><div class="">2) allow at preprocessor level abbility to implement construction like "if module loaded; then else; fi" and "case where". This allow dialplan will be polymorphic for FS configuration;</div><div class=""> </div><div class=""> </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="">On Mon, Dec 7, 2015 at 7:57 PM, Brian West <span dir="ltr" class=""><<a href="mailto:brian@freeswitch.org" target="_blank" class="">brian@freeswitch.org</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class=""><div dir="ltr" class="">FreeSWITCHers,<div class=""><br class=""></div><div class="">FS-8609 is raised to get a rough outline of a completely new config sample that will be used in 1.8, So we are reaching out to the community for input and direction, I have also created a hipchat room FS-8609 on <a href="http://hipchat.freeswitch.org/" target="_blank" class="">hipchat.freeswitch.org</a> if you wish to join in. Lets start the discussion on this topic.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><div class=""><br class=""></div>-- <br class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><p class=""><font face="courier new, monospace" class=""><b class=""><i class=""><font size="4" class="">Brian West</font></i></b><br class=""><span style="font-size:x-small" class=""><a href="mailto:brian@freeswitch.org" target="_blank" class="">brian@freeswitch.org</a></span></font></p><p class=""><font size="1" face="courier new, monospace" class=""><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" class=""><br class=""></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class=""><i class="">Twitter: @FreeSWITCH , @briankwest</i></b><br class=""><a href="http://www.freeswitchbook.com/" target="_blank" class="">http://www.freeswitchbook.com</a><br class=""><a href="http://www.freeswitchcookbook.com/" target="_blank" class="">http://www.freeswitchcookbook.com</a></font></p><p class=""><font face="monospace, monospace" class="">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank" class="">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank" class="">/r/freeswitch</a></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class="">T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank" class="">+19184209001</a> | <b class="">F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank" class="">+19184209002</a> | <b class="">M:</b>+1918424WEST (9378)<br class=""><b class="">iNUM:</b>+883 5100 1420 9001 | <b class="">ISN:</b>410*543 | <b class="">Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br class=""></div></div>_______________________________________________<br class="">
Freeswitch-docs mailing list<br class="">
<a href="mailto:Freeswitch-docs@lists.freeswitch.org" target="_blank" class="">Freeswitch-docs@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs</a><br class="">
<br class=""></blockquote></div><br class=""></div>
<br class="">_______________________________________________<br class="">
Freeswitch-docs mailing list<br class="">
<a href="mailto:Freeswitch-docs@lists.freeswitch.org" target="_blank" class="">Freeswitch-docs@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><p class=""><font face="courier new, monospace" class=""><b class=""><i class=""><font size="4" class="">Brian West</font></i></b><br class=""><span style="font-size:x-small" class=""><a href="mailto:brian@freeswitch.org" target="_blank" class="">brian@freeswitch.org</a></span></font></p><p class=""><font size="1" face="courier new, monospace" class=""><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" class=""><br class=""></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class=""><i class="">Twitter: @FreeSWITCH , @briankwest</i></b><br class=""><a href="http://www.freeswitchbook.com/" target="_blank" class="">http://www.freeswitchbook.com</a><br class=""><a href="http://www.freeswitchcookbook.com/" target="_blank" class="">http://www.freeswitchcookbook.com</a></font></p><p class=""><font face="monospace, monospace" class="">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank" class="">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank" class="">/r/freeswitch</a></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class="">T:</b>+19184209001 | <b class="">F:</b>+19184209002 | <b class="">M:</b>+1918424WEST (9378)<br class=""><b class="">iNUM:</b>+883 5100 1420 9001 | <b class="">ISN:</b>410*543 | <b class="">Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div><br class="">_______________________________________________<br class="">
Freeswitch-docs mailing list<br class="">
<a href="mailto:Freeswitch-docs@lists.freeswitch.org" target="_blank" class="">Freeswitch-docs@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Freeswitch-docs mailing list<br class=""><a href="mailto:Freeswitch-docs@lists.freeswitch.org" target="_blank" class="">Freeswitch-docs@lists.freeswitch.org</a><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></div><br class="">_______________________________________________<br class="">
Freeswitch-docs mailing list<br class="">
<a href="mailto:Freeswitch-docs@lists.freeswitch.org" class="">Freeswitch-docs@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Freeswitch-docs mailing list<br class=""><a href="mailto:Freeswitch-docs@lists.freeswitch.org" class="">Freeswitch-docs@lists.freeswitch.org</a><br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>