You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
I also just noticed, that the systemd service is started after a package update.
If the service was already running before the package update, the service will still be running with the old version.
A restart is here needed.
I will also fix this in my PR.
netsandbox
added a commit
to netsandbox/opentelemetry-collector-releases
that referenced
this issue
Jan 17, 2025
* reload systemd daemon to make it aware of an updated service file
after package update
* restart service to use the new binary after a package update
* don't stop and disable service after rpm package update
fixesopen-telemetry#799
netsandbox
added a commit
to netsandbox/opentelemetry-collector-releases
that referenced
this issue
Jan 20, 2025
* reload systemd daemon to make it aware of an updated service file
after package update
* restart service to use the new binary after a package update
* don't stop and disable service after rpm package update
fixesopen-telemetry#799
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.
The text was updated successfully, but these errors were encountered: