ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

c4675f Rework %post/%postun scriptlets

Authored and Committed by Zbigniew Jędrzejewski-Szmek 3 years ago
1 file changed. 23 lines added. 24 lines removed.
    Rework %post/%postun scriptlets
    
    All scriptlets to disable services upon final package removal are
    removed. Removing rpm from a running system is not allowed by dnf and
    would generally result in mayhem. Trying to clean up our enablement
    symlinks is not useful. Nobody tests this and it almost certainly was
    incomplete.
    
    Only do 'journalctl --update-catalog' if /var is writeable, and remove
    suppression of errors from 'journalctl --update-catalog'. It shouldn't
    fail, and it it does, we should figure out why.
    
    On upgrades, execute 'journalctl --update-catalog' and
    'systemd-tmpfiles --create' in %postun, not %post. This way we won't
    look at possibly-about-to-be-removed configuration.
    
    Restart various services upon upgrade: systemd-timedated.service
    systemd-timesyncd.service systemd-portabled.service
    systemd-homed.service systemd-hostnamed.service
    systemd-journald.service systemd-localed.service systemd-userdbd.service.
    Not doing this was a bug.
    
    user@.service and systemd-logind.service will need special handling
    and are not done in this patch.
    
        
file modified
+23 -24