mirror of
https://github.com/coturn/coturn.git
synced 2025-05-14 09:36:49 +08:00
Fix the issue https://github.com/coturn/coturn/issues/118 that prevent the process to start as coturn never send the notification to systemd thus preventing the startup. Cherry-picked from #990 thanks to @rapsys
26 lines
595 B
Plaintext
26 lines
595 B
Plaintext
[Unit]
|
|
Description=coturn
|
|
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
User=turnserver
|
|
Group=turnserver
|
|
Type=exec
|
|
PIDFile=/var/run/turnserver/turnserver.pid
|
|
EnvironmentFile=/etc/sysconfig/turnserver
|
|
ExecStart=/usr/bin/turnserver -c /etc/turnserver/turnserver.conf $EXTRA_OPTIONS
|
|
ExecStopPost=/usr/bin/rm -f /var/run/turnserver/turnserver.pid
|
|
Restart=on-abort
|
|
|
|
LimitCORE=infinity
|
|
LimitNOFILE=999999
|
|
LimitNPROC=60000
|
|
LimitRTPRIO=infinity
|
|
LimitRTTIME=7000000
|
|
CPUSchedulingPolicy=other
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|