FS-11704 "DAEMON_OPTS=-ncwait -nonat" in freeswitch.server causing startup failure
This commit is contained in:
parent
7e6206325a
commit
70dc40e680
|
@ -10,17 +10,17 @@ After=network.target network-online.target local-fs.target
|
||||||
; service
|
; service
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/run/freeswitch/freeswitch.pid
|
PIDFile=/run/freeswitch/freeswitch.pid
|
||||||
Environment="DAEMON_OPTS=-ncwait -nonat"
|
Environment="DAEMON_OPTS=-nonat"
|
||||||
Environment="USER=freeswitch"
|
Environment="USER=freeswitch"
|
||||||
Environment="GROUP=freeswitch"
|
Environment="GROUP=freeswitch"
|
||||||
EnvironmentFile=-/etc/default/freeswitch
|
EnvironmentFile=-/etc/default/freeswitch
|
||||||
ExecStartPre=/bin/chown -R ${USER}:${GROUP} /var/lib/freeswitch /var/log/freeswitch /etc/freeswitch /usr/share/freeswitch /var/run/freeswitch
|
ExecStartPre=/bin/chown -R ${USER}:${GROUP} /var/lib/freeswitch /var/log/freeswitch /etc/freeswitch /usr/share/freeswitch /var/run/freeswitch
|
||||||
ExecStart=/usr/bin/freeswitch ${DAEMON_OPTS}
|
ExecStart=/usr/bin/freeswitch -u ${USER} -g ${GROUP} -ncwait ${DAEMON_OPTS}
|
||||||
TimeoutSec=45s
|
TimeoutSec=45s
|
||||||
Restart=always
|
Restart=always
|
||||||
; exec
|
; exec
|
||||||
User=${USER}
|
;User=${USER}
|
||||||
Group=${GROUP}
|
;Group=${GROUP}
|
||||||
LimitCORE=infinity
|
LimitCORE=infinity
|
||||||
LimitNOFILE=100000
|
LimitNOFILE=100000
|
||||||
LimitNPROC=60000
|
LimitNPROC=60000
|
||||||
|
|
Loading…
Reference in New Issue