Matrix daemon tweaks
This commit is contained in:
parent
71c87f5a79
commit
07b224d9fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue