Browse Source

turn daemon

Bob Mottram 8 years ago
parent
commit
af22235ae5
2 changed files with 4 additions and 0 deletions
  1. 1
    0
      src/freedombone-app-matrix
  2. 3
    0
      src/freedombone-utils-turn

+ 1
- 0
src/freedombone-app-matrix View File

@@ -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 View File

@@ -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