forked from Mirrors/freeswitch
16d0538fb5
Doing a chown of something in /etc/ as part of a systemd service file is totally broken. It's far too large a sledgehammer to point at /etc here. Someone may legitimately not be using /etc/freeswitch/tls in his configuration, in which case this chown would fail and cause FS to fail to start. Or someone may legitimately need /etc/freeswitch/tls to have different ownership, in which case we would clobber it here. The right thing to do is to create this directory in the postinst (which we already are, assuming there is not an existing configuration) and then perform the chown of it at the same time. FS-7697
34 lines
668 B
Desktop File
34 lines
668 B
Desktop File
;;;;; 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
|
|
ExecStart=/usr/bin/freeswitch -ncwait -nonat
|
|
TimeoutSec=45s
|
|
Restart=always
|
|
; exec
|
|
RuntimeDirectory=freeswitch
|
|
RuntimeDirectoryMode=0755
|
|
WorkingDirectory=/var/log/freeswitch
|
|
User=freeswitch
|
|
Group=freeswitch
|
|
LimitCORE=infinity
|
|
LimitNOFILE=100000
|
|
LimitNPROC=60000
|
|
;LimitSTACK=240
|
|
LimitRTPRIO=infinity
|
|
LimitRTTIME=7000000
|
|
IOSchedulingClass=realtime
|
|
IOSchedulingPriority=2
|
|
CPUSchedulingPolicy=rr
|
|
CPUSchedulingPriority=89
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|