瀏覽代碼

turn daemon

Bob Mottram 8 年之前
父節點
當前提交
af22235ae5
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1
    0
      src/freedombone-app-matrix
  2. 3
    0
      src/freedombone-utils-turn

+ 1
- 0
src/freedombone-app-matrix 查看文件

@@ -322,6 +322,7 @@ function install_matrix {
322 322
 
323 323
     echo '[Unit]' > /etc/systemd/system/matrix.service
324 324
     echo 'Description=Matrix federated messaging' >> /etc/systemd/system/matrix.service
325
+    echo 'After=network.target nginx.target' >> /etc/systemd/system/matrix.service
325 326
     echo '' >> /etc/systemd/system/matrix.service
326 327
     echo '[Service]' >> /etc/systemd/system/matrix.service
327 328
     echo 'Type=simple' >> /etc/systemd/system/matrix.service

+ 3
- 0
src/freedombone-utils-turn 查看文件

@@ -90,6 +90,9 @@ function install_turn {
90 90
 
91 91
     chown -R matrix:matrix /var/lib/turn
92 92
 
93
+    echo '[Unit]' > /etc/systemd/system/matrix.service
94
+    echo 'Description=TURN server' >> /etc/systemd/system/turn.service
95
+    echo 'After=network.target nginx.target' >> /etc/systemd/system/turn.service
93 96
     echo '' >> /etc/systemd/system/turn.service
94 97
     echo '[Service]' >> /etc/systemd/system/turn.service
95 98
     echo 'Type=simple' >> /etc/systemd/system/turn.service