mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
2473f90c5c
- Add multi instance support - Remove offical helper in common.sh - Improve turnserver config - Update checkprocess - Check synapse is fully started before the end script - Use helper nginx ynh_add_nginx_config
27 lines
No EOL
664 B
Desktop File
27 lines
No EOL
664 B
Desktop File
[Unit]
|
|
Description=coturn
|
|
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
User=turnserver
|
|
Group=turnserver
|
|
Type=forking
|
|
EnvironmentFile=/etc/default/coturn-__APP__
|
|
PIDFile=/var/run/coturn-__APP__/turnserver.pid
|
|
RuntimeDirectory=coturn-__APP__
|
|
RuntimeDirectoryMode=0755
|
|
ExecStart=/usr/bin/turnserver -o -c /etc/matrix-__APP__/coturn.conf $EXTRA_OPTIONS
|
|
ExecStopPost=/bin/rm -f /var/run/coturn-__APP__/turnserver.pid
|
|
Restart=on-abort
|
|
|
|
LimitCORE=infinity
|
|
LimitNOFILE=999999
|
|
LimitNPROC=60000
|
|
LimitRTPRIO=infinity
|
|
LimitRTTIME=7000000
|
|
CPUSchedulingPolicy=other
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |