2
0

freeswitch-systemd.freeswitch.service 657 B

123456789101112131415161718192021222324252627282930313233
  1. ;;;;; Author: Travis Cross <tc@traviscross.com>
  2. [Unit]
  3. Description=freeswitch
  4. After=syslog.target network.target local-fs.target
  5. [Service]
  6. ; service
  7. Type=forking
  8. PIDFile=/run/freeswitch/freeswitch.pid
  9. PermissionsStartOnly=true
  10. ExecStart=/usr/bin/freeswitch -ncwait -nonat
  11. TimeoutSec=45s
  12. Restart=always
  13. ; exec
  14. RuntimeDirectory=freeswitch
  15. RuntimeDirectoryMode=0755
  16. User=freeswitch
  17. Group=freeswitch
  18. LimitCORE=infinity
  19. LimitNOFILE=100000
  20. LimitNPROC=60000
  21. ;LimitSTACK=240
  22. LimitRTPRIO=infinity
  23. LimitRTTIME=7000000
  24. IOSchedulingClass=realtime
  25. IOSchedulingPriority=2
  26. CPUSchedulingPolicy=rr
  27. CPUSchedulingPriority=89
  28. UMask=0007
  29. [Install]
  30. WantedBy=multi-user.target