Skip to content

Commit

Permalink
fix(RPM): Fixed RPM systemd scripts, restart the services after upgra…
Browse files Browse the repository at this point in the history
…de (#1342)

## Problem

- The systemd services are not automatically restarted after upgrading
the RPM packages

## Solution

- Restart the Agama webserver after upgrading the package
- Add the systemd handling also to the Ruby service package
  • Loading branch information
lslezak authored Jun 17, 2024
2 parents c4e3bdb + 44a9ed7 commit cff57d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rust/package/agama.spec
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ echo $PATH
%service_del_preun agama-web-server.service

%postun
%service_del_preun agama-web-server.service
%service_del_postun_with_restart agama-web-server.service

%files
%{_bindir}/agama-dbus-server
Expand Down
5 changes: 5 additions & 0 deletions service/package/gem2rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,8 @@
%{_datadir}/agama/conf.d\n
%dir /usr/share/YaST2\n
/usr/share/YaST2/locale\n"
:scripts:
:pre: "%service_add_pre agama.service"
:post: "%service_add_post agama.service"
:preun: "%service_del_preun agama.service"
:postun: "%service_del_postun_with_restart agama.service"

0 comments on commit cff57d1

Please sign in to comment.