Skip to content

Commit e83f8c0

Browse files
committed
Add environment file to systemd unit configuration.
Now there is at least one environment variable that controls synapse server's behaviour: SYNAPSE_CACHE_FACTOR. So, it makes sense to make systemd unit file to use environment configuration file that can set this variable's value. Signed-off-by: Oleg Girko <[email protected]>
1 parent 5fbdf2b commit e83f8c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/systemd/synapse.service

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Description=Synapse Matrix homeserver
99
Type=simple
1010
User=synapse
1111
Group=synapse
12+
EnvironmentFile=-/etc/sysconfig/synapse
1213
WorkingDirectory=/var/lib/synapse
1314
ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml --log-config=/etc/synapse/log_config.yaml
1415

0 commit comments

Comments
 (0)