Install new unit file
This commit is contained in:
parent
c032074b69
commit
ab3afc8da2
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue