<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Monaco;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Might check that PID file is deleted before you start FS and that there are no FS trying to start already.<o:p></o:p></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Robert Mundkowsky<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Joshua Young<br>
<b>Sent:</b> Wednesday, June 28, 2017 10:41 AM<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> Re: [Freeswitch-users] FS service issues (systemd)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">If you compiled FreeSWITCH, you might want to edit these two lines accordingly. However, if this is a packaged version of FreeSWITCH, this may not be the answer.<o:p></o:p></p>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><s><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">PIDFile=/run/freeswitch/freeswitch.pid</span></s><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">PIDFile=/usr/local/freeswitch/run/freeswitch.pid<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"> <o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt">
<s><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">ExecStart=/usr/bin/freeswitch</span></s><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">ExecStart=/usr/local/freeswitch/bin/freeswitch<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">the do the systemctl stuff<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="line-height:15.0pt;background:black;vertical-align:baseline">
<code><span style="font-size:10.0pt;font-family:Consolas;color:lightgrey;border:none windowtext 1.0pt;padding:0in">systemctl daemon-reload</span></code><span style="font-size:10.5pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:15.0pt;background:black;vertical-align:baseline">
<code><span style="font-size:10.0pt;font-family:Consolas;color:lightgrey;border:none windowtext 1.0pt;padding:0in">systemctl enable freeswitch</span></code><span style="font-size:10.5pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:15.0pt;background:black;vertical-align:baseline">
<code><span style="font-size:10.0pt;font-family:Consolas;color:lightgrey;border:none windowtext 1.0pt;padding:0in">systemctl start freeswitch</span></code><span style="font-size:10.5pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jun 28, 2017 at 7:43 AM, Rick Jarvis <<a href="mailto:rick@magicmail.mooo.com" target="_blank">rick@magicmail.mooo.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><br>
Got a weird issue where FS isn’t starting up correctly. Looking at the logs, it appears just to be attempting to restart SIP profiles (and failing), and that’s about it. There’s no socket for fs_cli, and a simple ‘systemctl restart’ fixes it. Anyone had something
 like this? I’ve tried fixing it with systemd after / requires, but it hasn’t helped. <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Here’s my .service file (not sure if this is the issue, I'd welcome any comments / better versions?)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">[Unit]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">Description=freeswitch<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">After=syslog.target network-online.target local-fs.target<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">[Service]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">; service<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">Type=forking<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">PIDFile=/run/freeswitch/freeswitch.pid<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">PermissionsStartOnly=true<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">ExecStart=/usr/bin/freeswitch -ncwait -nonat<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">ExecStop=/usr/bin/fs_cli -x shutdown<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">TimeoutSec=45s<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">Restart=always<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">; exec<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">RuntimeDirectory=freeswitch<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">RuntimeDirectoryMode=0755<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">User=freeswitch<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">Group=freeswitch<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">LimitCORE=infinity<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">LimitNOFILE=100000<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">LimitNPROC=60000<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">;LimitSTACK=240<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">LimitRTPRIO=infinity<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">LimitRTTIME=7000000<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">IOSchedulingClass=realtime<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">IOSchedulingPriority=2<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">CPUSchedulingPolicy=rr<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">CPUSchedulingPriority=89<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">UMask=0007<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4">[Install]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Monaco",serif;color:#F4F4F4"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitchsolutions.com&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=SqhibXkM09yAbM3A2DEuthBlwW4wNwsWyetzOiZJcJg%3D&reserved=0" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=vkLjgDx0TPm9aE5x6SmF0szUq%2F4S5lGTIa9oLkwONB0%3D&reserved=0" target="_blank">http://www.freeswitch.org</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfluence.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=pZry0DaEGzUcfMq2TwJQ06OVv8vZzoGZYBiAKcqW6WI%3D&reserved=0" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cluecon.com&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=HAOhaSudUHWwcUs5E6FKCSduzTrqa8V01q3lScD1R%2Bg%3D&reserved=0" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Flistinfo%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=BtjSy9NC9YCBlCh%2BE3eG22LPHJw2s6a5RiR%2B2k10Lpk%3D&reserved=0" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Foptions%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=WJYzBjycurUiun228uXJiZ6GiLbiW3hYmdlo9GLcHt8%3D&reserved=0" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C1af849ec532f4b5753a808d4be34f091%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342581964887644&sdata=vkLjgDx0TPm9aE5x6SmF0szUq%2F4S5lGTIa9oLkwONB0%3D&reserved=0" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<br>
<hr>
<p>This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender;
 do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.</p>
<br>
<p>Thank you for your compliance.</p>
<hr>
</body>
</html>