From ab3afc8da2e258b8ec7e2c687ca61e557fe9c636 Mon Sep 17 00:00:00 2001 From: Alexander Manning Date: Tue, 29 Jun 2021 17:25:27 +0100 Subject: [PATCH] Install new unit file --- matrix-synapse.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matrix-synapse.spec b/matrix-synapse.spec index c95b95d..842524d 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -111,6 +111,7 @@ rm -r %{buildroot}%{python3_sitelib}/synmark/ install -p -D -T -m 0644 contrib/systemd/log_config.yaml %{buildroot}%{_sysconfdir}/synapse/log_config.yaml install -p -D -T -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/synapse install -p -D -T -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/synapse.service +install -p -D -T -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/synapse@.service install -p -d -m 755 %{buildroot}/%{_sharedstatedir}/synapse install -p -D -T -m 755 %{SOURCE3} %{buildroot}%{_bindir}/synapse-homeserver @@ -128,15 +129,15 @@ exit 0 %post %systemd_post synapse.service -%systemd_post synapse@.service +%systemd_post synapse@*.service %preun %systemd_preun synapse.service -%systemd_preun synapse@.service +%systemd_preun synapse@*.service %postun %systemd_postun_with_restart synapse.service -%systemd_postun_with_restart synapse@.service +%systemd_postun_with_restart synapse@*.service %files %license LICENSE