save and exit then su back to your normal user
====Create a user with limited rights to run freeswitch====
cd /usr/local
==== Create a systemd service file to start automatically====
sudo nano /etc/systemd/system/freeswitch.service
WantedBy=multi-user.target
start the service and enable
sudo systemctl start freeswitch.service
check its working with
sudo systemctl status freeswitch.service
enable the service so it starts each time at boot
sudo systemctl enable freeswitch.service