driskell / log-courier

The Log Courier Suite is a set of lightweight tools created to ship and process log files speedily and securely, with low resource usage, to Elasticsearch or Logstash instances.
Other
419 stars 107 forks source link

Non-fatal POSTUN scriptlet failure in rpm package log-courier #228

Closed martinhynar closed 8 years ago

martinhynar commented 9 years ago

Hi,

I wonder why log-courier is restarted in %postun? If log-courier is not running, you get the warning message 'Non-fatal POSTUN scriptlet failure in rpm package log-courier'. Also, I would not expect log-courier to be started, because it might be not configured at that point.

I have this scenario: VM image with preinstalled log-courier is started (at the moment log-courier 1.7.3) For certain packages, yum update is fired to make them up-to-date (this is easier way to have them updated than creating new VM image too frequently).

driskell commented 9 years ago

Can you confirm when you updated, that log-courier was not configured? That might explain the problem. I do know there was this happening with previous packages and the package was fixed (but when installed fixed package it would still throw the error because it runs this script from the old package.)

Will fix up the scripts for next version to ensure it only restarts if it was already running.

martinhynar commented 9 years ago

log-courier 1.7.3 was only installed, never configured and never started. Then update to version 1.8.1 was triggered with the warning appearing.