1
0

Systemd documentation (#6490)

* commit '96d35f102':
  Systemd documentation (#6490)
This commit is contained in:
Andrew Morgan
2020-03-19 17:46:01 +00:00
3 changed files with 9 additions and 5 deletions

1
changelog.d/6490.doc Normal file
View File

@@ -0,0 +1 @@
Update documentation and variables in user contributed systemd reference file.

View File

@@ -4,8 +4,11 @@
# systemctl enable matrix-synapse
# systemctl start matrix-synapse
#
# This assumes that Synapse has been installed by a user named
# synapse.
#
# This assumes that Synapse has been installed in a virtualenv in
# /opt/synapse/env.
# the user's home directory: `/home/synapse/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.
@@ -22,8 +25,8 @@ 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
WorkingDirectory=/home/synapse/synapse
ExecStart=/home/synapse/synapse/env/bin/python -m synapse.app.homeserver --config-path=/home/synapse/synapse/homeserver.yaml
SyslogIdentifier=matrix-synapse
# adjust the cache factor if necessary

View File

@@ -159,9 +159,9 @@ class ProfileWorkerStore(SQLBaseStore):
class ProfileStore(ProfileWorkerStore):
def __init__(self, db_conn, hs):
def __init__(self, database, db_conn, hs):
super(ProfileStore, self).__init__(db_conn, hs)
super(ProfileStore, self).__init__(database, db_conn, hs)
self.db.updates.register_background_index_update(
"profile_replication_status_host_index",