Install new unit file

This commit is contained in:
Alex Manning 2021-06-29 17:25:27 +01:00
parent c032074b69
commit ab3afc8da2

View file

@ -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