2012-02-23 20:03:09 -05:00
|
|
|
;;;;; Author: Travis Cross <tc@traviscross.com>
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=freeswitch
|
|
|
|
After=syslog.target network.target local-fs.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
; service
|
|
|
|
Type=forking
|
|
|
|
PIDFile=/run/freeswitch/freeswitch.pid
|
|
|
|
PermissionsStartOnly=true
|
|
|
|
ExecStartPre=/bin/mkdir -p /run/freeswitch
|
|
|
|
ExecStartPre=/bin/chown freeswitch:freeswitch /run/freeswitch
|
2014-06-23 11:03:53 -04:00
|
|
|
ExecStart=/usr/bin/freeswitch -ncwait -nonat
|
2012-02-23 20:03:09 -05:00
|
|
|
TimeoutSec=45s
|
|
|
|
Restart=always
|
|
|
|
; exec
|
2015-07-30 20:13:55 -04:00
|
|
|
WorkingDirectory=/var/log/freeswitch
|
2012-02-23 20:03:09 -05:00
|
|
|
User=freeswitch
|
|
|
|
Group=freeswitch
|
|
|
|
LimitCORE=infinity
|
|
|
|
LimitNOFILE=100000
|
|
|
|
LimitNPROC=60000
|
2015-01-05 02:11:40 -05:00
|
|
|
;LimitSTACK=240
|
2012-02-23 20:03:09 -05:00
|
|
|
LimitRTPRIO=infinity
|
|
|
|
LimitRTTIME=7000000
|
|
|
|
IOSchedulingClass=realtime
|
|
|
|
IOSchedulingPriority=2
|
|
|
|
CPUSchedulingPolicy=rr
|
|
|
|
CPUSchedulingPriority=89
|
|
|
|
UMask=0007
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|