2
0

freeswitch.service 774 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=FreeSWITCH
  3. After=syslog.target network.target
  4. After=postgresql.service postgresql-9.3.service postgresql-9.4.service mysqld.service httpd.service
  5. [Service]
  6. # You can use Type=notify only if you compile FreeSWITCH with --enable-systemd configure option
  7. # In this case you have to run FreeSWITCH in foreground mode (-nf option)!
  8. #Type=notify
  9. #NotifyAccess=main
  10. User=freeswitch
  11. EnvironmentFile=-/etc/sysconfig/freeswitch
  12. # RuntimeDirectory is not yet supported in CentOS 7. A workaround is to use /etc/tmpfiles.d/freeswitch.conf
  13. #RuntimeDirectory=/run/freeswitch
  14. #RuntimeDirectoryMode=0750
  15. WorkingDirectory=/run/freeswitch
  16. ExecStart=/usr/bin/freeswitch -nc -nf $FREESWITCH_PARAMS
  17. ExecReload=/usr/bin/kill -HUP $MAINPID
  18. [Install]
  19. WantedBy=multi-user.target