[arch-commits] Commit in matrix-synapse/trunk (synapse.service)

Johannes Löthberg demize at archlinux.org
Sun May 23 21:59:25 UTC 2021


    Date: Sunday, May 23, 2021 @ 21:59:24
  Author: demize
Revision: 943520

Switch to Type=notify, add ExecReload= and ExecRestart=always

Modified:
  matrix-synapse/trunk/synapse.service

-----------------+
 synapse.service |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: synapse.service
===================================================================
--- synapse.service	2021-05-23 21:58:30 UTC (rev 943519)
+++ synapse.service	2021-05-23 21:59:24 UTC (rev 943520)
@@ -1,10 +1,10 @@
 [Unit]
 Description=Synapse Matrix homeserver
 After=network-online.target
-Requires=network-online.target
+Wants=network-online.target
 
 [Service]
-Type=simple
+Type=notify
 User=synapse
 Group=synapse
 SyslogIdentifier=synapse
@@ -11,8 +11,11 @@
 Environment=LANG=en_US.UTF-8
 WorkingDirectory=/var/lib/synapse
 ExecStart=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml
+ExecReload=/usr/bin/kill -HUP $MAINPID
 ExecStop=/usr/bin/synctl stop /etc/synapse/homeserver.yaml
 EnvironmentFile=-/etc/default/synapse
+Restart=always
+RestartSec=3
 
 [Install]
 WantedBy=multi-user.target



More information about the arch-commits mailing list