Skip to content

Commit

Permalink
build(srpm): Use systemd restart macros
Browse files Browse the repository at this point in the history
Use the %systemd macros to restart services during upgrade.

Signed-off-by: Link Dupont <[email protected]>
  • Loading branch information
subpop authored and jirihnidek committed Jun 25, 2024
1 parent 16fec57 commit dbda17f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dist/srpm/yggdrasil.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ export %gomodulesmode
%endif
%endif

%post
%systemd_post %{name}.service
%systemd_user_post %{name}.service

%preun
%systemd_preun %{name}.service
%systemd_user_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service
%systemd_user_postun_with_restart %{name}.service

%files
%license LICENSE
%doc CONTRIBUTING.md README.md
Expand Down

0 comments on commit dbda17f

Please sign in to comment.