瀏覽代碼

Set the turn pid file

Bob Mottram 8 年之前
父節點
當前提交
ea114b507b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/freedombone-utils-turn

+ 1
- 1
src/freedombone-utils-turn 查看文件

@@ -94,7 +94,7 @@ function install_turn {
94 94
     echo 'Type=simple' >> /etc/systemd/system/turn.service
95 95
     echo 'User=matrix' >> /etc/systemd/system/turn.service
96 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 98
     echo "Environment=REPORT_STATS=\"no\"" >> /etc/systemd/system/turn.service
99 99
     echo 'Restart=always' >> /etc/systemd/system/turn.service
100 100
     echo 'RestartSec=10' >> /etc/systemd/system/turn.service