diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-12-07 14:43:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 14:43:41 +0100 |
commit | 35e13477cfe17dcc2d1974d39cbc9b0e6809c5a0 (patch) | |
tree | 2c6b90465006ff6f2e66dc2215e10ae155474c3d /contrib/systemd/matrix-synapse.service | |
parent | Implement SAML2 authentication (#4267) (diff) | |
download | synapse-35e13477cfe17dcc2d1974d39cbc9b0e6809c5a0.tar.xz |
Update the example systemd config to use a virtualenv (#4273)
If you're installing as a system package, the system package should have set up the systemd config, so it's more useful to give an example of running in a virtualenv here.
Diffstat (limited to 'contrib/systemd/matrix-synapse.service')
-rw-r--r-- | contrib/systemd/matrix-synapse.service | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/systemd/matrix-synapse.service b/contrib/systemd/matrix-synapse.service new file mode 100644 index 0000000000..efb157e941 --- /dev/null +++ b/contrib/systemd/matrix-synapse.service @@ -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 + |