Might check that PID file is deleted before you start FS and that there are no FS trying to start already. Robert Mundkowsky From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Joshua Young Sent: Wednesday, June 28, 2017 10:41 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] FS service issues (systemd) 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. PIDFile=/run/freeswitch/freeswitch.pid PIDFile=/usr/local/freeswitch/run/freeswitch.pid ExecStart=/usr/bin/freeswitch ExecStart=/usr/local/freeswitch/bin/freeswitch the do the systemctl stuff systemctl daemon-reload systemctl enable freeswitch systemctl start freeswitch On Wed, Jun 28, 2017 at 7:43 AM, Rick Jarvis <rick@magicmail.mooo.com<mailto:rick@magicmail.mooo.com>> wrote: 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. Here’s my .service file (not sure if this is the issue, I'd welcome any comments / better versions?) [Unit] Description=freeswitch After=syslog.target network-online.target local-fs.target [Service] ; service Type=forking PIDFile=/run/freeswitch/freeswitch.pid PermissionsStartOnly=true ExecStart=/usr/bin/freeswitch -ncwait -nonat ExecStop=/usr/bin/fs_cli -x shutdown TimeoutSec=45s Restart=always ; exec RuntimeDirectory=freeswitch RuntimeDirectoryMode=0755 User=freeswitch Group=freeswitch LimitCORE=infinity LimitNOFILE=100000 LimitNPROC=60000 ;LimitSTACK=240 LimitRTPRIO=infinity LimitRTTIME=7000000 IOSchedulingClass=realtime IOSchedulingPriority=2 CPUSchedulingPolicy=rr CPUSchedulingPriority=89 UMask=0007 [Install] _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<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> Official FreeSWITCH Sites http://www.freeswitch.org<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> http://confluence.freeswitch.org<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> http://www.cluecon.com<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> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<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> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<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> http://www.freeswitch.org<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> ________________________________ 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. Thank you for your compliance. ________________________________