ManageIQ / manageiq-rpm_build

Code to build RPMs for ManageIQ appliances and container images
Apache License 2.0
10 stars 25 forks source link

Add manageiq_podman_cleanup oneshot service #506

Closed agrare closed 2 months ago

agrare commented 2 months ago

RPM install/upgrade

  Upgrading        : manageiq-appliance-19.0.0-20240913160107.el9.x86_64 
  Running scriptlet: manageiq-appliance-19.0.0-20240913160107.el9.x86_64                                                                                                                               8/18 
Created symlink /etc/systemd/system/multi-user.target.wants/manageiq-podman-cleanup.service → /usr/lib/systemd/system/manageiq-podman-cleanup.service.

[root@manageiq ~]# systemctl status manageiq-podman-cleanup
○ manageiq-podman-cleanup.service - "Podman Initialization"
     Loaded: loaded (/usr/lib/systemd/system/manageiq-podman-cleanup.service; enabled; preset: disabled)
     Active: inactive (dead)

After reboot:

[root@manageiq ~]# systemctl status manageiq-podman-cleanup
○ manageiq-podman-cleanup.service - "Podman Initialization"
     Loaded: loaded (/usr/lib/systemd/system/manageiq-podman-cleanup.service; enabled; preset: disabled)
     Active: inactive (dead) since Fri 2024-09-13 12:22:16 EDT; 1min 9s ago
    Process: 872 ExecStart=/bin/manageiq-podman-cleanup (code=exited, status=0/SUCCESS)
   Main PID: 872 (code=exited, status=0/SUCCESS)
        CPU: 15ms

Sep 13 12:22:16 manageiq.rb.nj.grare.com systemd[1]: Starting "Podman Initialization"...
Sep 13 12:22:16 manageiq.rb.nj.grare.com systemd[1]: manageiq-podman-cleanup.service: Deactivated successfully.
Sep 13 12:22:16 manageiq.rb.nj.grare.com systemd[1]: Finished "Podman Initialization".

Related: https://github.com/ManageIQ/manageiq-appliance/pull/390

Fryguy commented 2 months ago

Backported to radjabov in commit e0590ca3a134d98f7bbf1021574b84fbe2d19a1c.

commit e0590ca3a134d98f7bbf1021574b84fbe2d19a1c
Author: Jason Frey <fryguy9@gmail.com>
Date:   Fri Sep 13 12:28:17 2024 -0400

    Merge pull request #506 from agrare/add_manageiq_podman_cleanup_oneshot

    Add manageiq_podman_cleanup oneshot service

    (cherry picked from commit 0cfa84f8b6c91e10ce22eda96cb560d4f62ace16)