Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'rav/update_systemd_config' into rav/saml2_auth/work
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Dec 7, 2018
2 parents aee4a33 + fb22c9c commit 87af3d1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 22 deletions.
1 change: 1 addition & 0 deletions changelog.d/4273.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the example systemd config to use a virtualenv
31 changes: 31 additions & 0 deletions contrib/systemd/matrix-synapse.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Example systemd configuration file for synapse. Copy into
# /etc/systemd/system/, update the paths if necessary, then:
#
# systemctl enable matrix-synapse
# systemctl start matrix-synapse
#
# This assumes that Synapse has been installed in a virtualenv in
# /opt/synapse/env.
#
# **NOTE:** This is an example service file that may change in the future. If you
# wish to use this please copy rather than symlink it.

[Unit]
Description=Synapse Matrix homeserver

[Service]
Type=simple
Restart=on-abort

User=synapse
Group=nogroup

WorkingDirectory=/opt/synapse
ExecStart=/opt/synapse/env/bin/python -m synapse.app.homeserver --config-path=/opt/synapse/homeserver.yaml

# adjust the cache factor if necessary
# Environment=SYNAPSE_CACHE_FACTOR=2.0

[Install]
WantedBy=multi-user.target

22 changes: 0 additions & 22 deletions contrib/systemd/synapse.service

This file was deleted.

0 comments on commit 87af3d1

Please sign in to comment.