summaryrefslogtreecommitdiff
blob: 19661e96257e25cdb55c3714e3519178ccd60c9f (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
After=network.target
After=postgresql-10.service
After=postgresql-11.service
After=postgresql-12.service
After=postgresql-13.service
After=postgresql-14.service
After=postgresql-15.service

[Service]
ExecStart=/usr/bin/synctl --no-daemonize start /etc/synapse/homeserver.yaml
ExecStop=/usr/bin/synctl stop /etc/synapse/homeserver.yaml
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
PrivateTmp=true
User=synapse
Group=synapse
WorkingDirectory=/var/lib/synapse

[Install]
WantedBy=multi-user.target