Hi,
I am using CentOS 7 and tried to start the freeswitch with systemctl start freeswitch.
It is working with freeswitch -nc but the systemctl start freeswitch is using the freeswitch:daemon user, a shown below
root@localhost bin]# systemctl status freeswitch.service
● freeswitch.service - freeswitch
Loaded: loaded (/usr/lib/systemd/system/freeswitch.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Thu 2019-11-21 09:05:16 EST; 8s ago
Process: 4251 ExecStart=/usr/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE)
Process: 4249 ExecStartPre=/bin/chown -R freeswitch:daemon /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Process: 4248 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service: control process exited, code=exited status=1
Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch.
Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state.
Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed.
Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service holdoff time over, scheduling restart.
Nov 21 09:05:16 localhost.localdomain systemd[1]: Stopped freeswitch.
Nov 21 09:05:16 localhost.localdomain systemd[1]: start request repeated too quickly for freeswitch.service
Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch.
Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state.
Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed.
Although permissions of the folders the below folders are set for the user freeswitch
drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/
drwxr-x--- 2 freeswitch daemon 40 Nov 21 09:05 /var/run/freeswitch/
drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/
-rwxr-xr-x. 1 freeswitch daemon 28336 Aug 20 15:08 /usr/bin/freeswitch