diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index e19712f5..b3216c34 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -322,6 +322,7 @@ function install_matrix { echo '[Unit]' > /etc/systemd/system/matrix.service echo 'Description=Matrix federated messaging' >> /etc/systemd/system/matrix.service + echo 'After=network.target nginx.target' >> /etc/systemd/system/matrix.service echo '' >> /etc/systemd/system/matrix.service echo '[Service]' >> /etc/systemd/system/matrix.service echo 'Type=simple' >> /etc/systemd/system/matrix.service diff --git a/src/freedombone-utils-turn b/src/freedombone-utils-turn index e9228ba9..3d39245b 100755 --- a/src/freedombone-utils-turn +++ b/src/freedombone-utils-turn @@ -90,6 +90,9 @@ function install_turn { chown -R matrix:matrix /var/lib/turn + echo '[Unit]' > /etc/systemd/system/matrix.service + echo 'Description=TURN server' >> /etc/systemd/system/turn.service + echo 'After=network.target nginx.target' >> /etc/systemd/system/turn.service echo '' >> /etc/systemd/system/turn.service echo '[Service]' >> /etc/systemd/system/turn.service echo 'Type=simple' >> /etc/systemd/system/turn.service