summarylogtreecommitdiffstats
path: root/synapse-worker@.service
blob: d14e985612bc9d644fee3714cc69b255ed35d4ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=Synapse Matrix homeserver (%i)
AssertPathExists=/etc/synapse/workers/%i.yaml
PartOf=synapse.target
ReloadPropagatedFrom=synapse.target
After=synapse.service

[Service]
Type=notify
User=synapse
Group=synapse
SyslogIdentifier=synapse-%i
Environment=LANG=en_US.UTF-8
WorkingDirectory=/var/lib/synapse
ExecStart=/usr/bin/python3 -m synapse.app.generic_worker --config-path=/etc/synapse/homeserver.yaml --config-path=/etc/synapse/workers/%i.yaml
ExecReload=/bin/kill -HUP $MAINPID
EnvironmentFile=-/etc/default/synapse
Restart=always
RestartSec=3

[Install]
WantedBy=synapse.target