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

Commit

Permalink
Systemd documentation (#6490)
Browse files Browse the repository at this point in the history
* commit '96d35f102':
  Systemd documentation (#6490)
  • Loading branch information
anoadragon453 committed Mar 19, 2020
2 parents 5069b7f + 96d35f1 commit ac2c017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.d/6490.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update documentation and variables in user contributed systemd reference file.
9 changes: 6 additions & 3 deletions contrib/systemd/matrix-synapse.service
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions synapse/storage/data_stores/main/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def set_profile_active(self, user_localpart, active, hide, batchnum):


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",
Expand Down

0 comments on commit ac2c017

Please sign in to comment.