Skip to content

Systemd service stopped and disabled after rpm package update #799

@netsandbox

Description

@netsandbox

I recently updated our otelcol-contrib rpm package from version 0.112.0 to 0.117.0 and noticed that after the update the otelcol-contrib systemd service was stopped and disabled.

As you can see in https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#ordering, is first executed the postinstall (post) of the previous package version (4.) and then the preuninstall (preun) of the new package version (9.).

In the here generated rpm package is first the otelcol-contrib service enabled and started in the postinstall of the previous version, and then stopped and disabled in the preuninstall of the new version.

The deb package seams to be not affected, because regarding https://wiki.debian.org/MaintainerScripts#Upgrading is there first executed the preuninstall (prerm) of the previous version and then the postinstall (postinst) of the new version.

I will later create a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    artifact:rpmIssues related to RPM packagesbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions