Systemd documentation (#6490)
* commit '96d35f102': Systemd documentation (#6490)
This commit is contained in:
1
changelog.d/6490.doc
Normal file
1
changelog.d/6490.doc
Normal file
@@ -0,0 +1 @@
|
||||
Update documentation and variables in user contributed systemd reference 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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user