This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ Update documentation and variables in user contributed systemd reference file.
Original file line number Diff line number Diff line change
1
+ # Setup Synapse with Systemd
2
+ This is a setup for managing synapse with a user contributed systemd unit
3
+ file. It provides a ` matrix-synapse ` systemd unit file that should be tailored
4
+ to accommodate your installation in accordance with the installation
5
+ instructions provided in [ installation instructions] ( ../../INSTALL.md ) .
6
+
7
+ ## Setup
8
+ 1 . Under the service section, ensure the ` User ` variable matches which user
9
+ you installed synapse under and wish to run it as.
10
+ 2 . Under the service section, ensure the ` WorkingDirectory ` variable matches
11
+ where you have installed synapse.
12
+ 3 . Under the service section, ensure the ` ExecStart ` variable matches the
13
+ appropriate locations of your installation.
14
+ 4 . Copy the ` matrix-synapse.service ` to ` /etc/systemd/system/ `
15
+ 5 . Start Synapse: ` sudo systemctl start matrix-synapse `
16
+ 6 . Verify Synapse is running: ` sudo systemctl status matrix-synapse `
17
+ 7 . * optional* Enable Synapse to start at system boot: ` sudo systemctl enable matrix-synapse `
Original file line number Diff line number Diff line change 4
4
# systemctl enable matrix-synapse
5
5
# systemctl start matrix-synapse
6
6
#
7
+ # This assumes that Synapse has been installed by a user named
8
+ # synapse.
9
+ #
7
10
# This assumes that Synapse has been installed in a virtualenv in
8
- # /opt /synapse/env.
11
+ # the user's home directory: `/home /synapse/synapse/ env` .
9
12
#
10
13
# **NOTE:** This is an example service file that may change in the future. If you
11
14
# wish to use this please copy rather than symlink it.
@@ -23,7 +26,7 @@ User=synapse
23
26
Group =nogroup
24
27
25
28
WorkingDirectory =/opt/synapse
26
- ExecStart =/opt /synapse/env/bin/python -m synapse.app.homeserver --config-path =/opt /synapse/homeserver.yaml
29
+ ExecStart =/home /synapse/synapse/ env/bin/python -m synapse.app.homeserver --config-path =/home/synapse /synapse/homeserver.yaml
27
30
SyslogIdentifier =matrix-synapse
28
31
29
32
# adjust the cache factor if necessary
You can’t perform that action at this time.
0 commit comments