|
|
|
|
94
|
echo 'Type=simple' >> /etc/systemd/system/turn.service
|
94
|
echo 'Type=simple' >> /etc/systemd/system/turn.service
|
95
|
echo 'User=matrix' >> /etc/systemd/system/turn.service
|
95
|
echo 'User=matrix' >> /etc/systemd/system/turn.service
|
96
|
echo "WorkingDirectory=/var/lib/turn" >> /etc/systemd/system/turn.service
|
96
|
echo "WorkingDirectory=/var/lib/turn" >> /etc/systemd/system/turn.service
|
97
|
- echo "ExecStart=/usr/bin/turnserver -c /var/lib/turn/turnserver.conf" >> /etc/systemd/system/turn.service
|
|
|
|
|
97
|
+ echo "ExecStart=/usr/bin/turnserver -c /var/lib/turn/turnserver.conf --pidfile /var/lib/matrix/homeserver.pid" >> /etc/systemd/system/turn.service
|
98
|
echo "Environment=REPORT_STATS=\"no\"" >> /etc/systemd/system/turn.service
|
98
|
echo "Environment=REPORT_STATS=\"no\"" >> /etc/systemd/system/turn.service
|
99
|
echo 'Restart=always' >> /etc/systemd/system/turn.service
|
99
|
echo 'Restart=always' >> /etc/systemd/system/turn.service
|
100
|
echo 'RestartSec=10' >> /etc/systemd/system/turn.service
|
100
|
echo 'RestartSec=10' >> /etc/systemd/system/turn.service
|