From 07b224d9fe32ed030972d4d17cbe39ee001c109c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Dec 2016 20:39:30 +0000 Subject: [PATCH] Matrix daemon tweaks --- src/freedombone-app-matrix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 0589351b..dfeba5b1 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -342,14 +342,14 @@ function install_matrix { chown -R matrix:matrix $MATRIX_DATA_DIR echo '[Unit]' > /etc/systemd/system/matrix.service - echo 'Description=Matrix federated messaging' >> /etc/systemd/system/matrix.service + echo 'Description=Synapse Matrix homeserver' >> /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 echo 'User=matrix' >> /etc/systemd/system/matrix.service echo "WorkingDirectory=/etc/matrix" >> /etc/systemd/system/matrix.service - echo "ExecStart=/usr/bin/python -m synapse.app.homeserver --config-path ${MATRIX_DATA_DIR}/homeserver.yaml" >> /etc/systemd/system/matrix.service + echo "ExecStart=source /var/lib/matrix/.synapse/bin/activate && /usr/bin/python -m synapse.app.homeserver --config-path ${MATRIX_DATA_DIR}/homeserver.yaml" >> /etc/systemd/system/matrix.service echo 'Restart=always' >> /etc/systemd/system/matrix.service echo 'RestartSec=10' >> /etc/systemd/system/matrix.service echo '' >> /etc/systemd/system/matrix.service