Package: crowdsec
Version: 1.4.2-1
Severity: important

Hi,

Seen during upgrade tests, starting at 1.0.9-*: there's an important
delay (~ 1 minute) during the upgrade, with no apparent activity.
According to crowdsec.log, we're waiting for the existing process to
shut down following the SIGTERM:

    time="14-02-2023 22:27:53" level=info msg="Crowdsec engine shutting down"

I'll ask upstream to comment on this. Gut feeling would be: it might be
acceptable to be a little more aggressive, tweaking the postinst script
to include some sort of timeout, and killing the existing process after
say 10 seconds (if terminating didn't return by then). Of course, if a
clean shutdown is preferable (internal data that need to be stored,
etc.), maybe it'll be better to actually dig into why the old version is
taking so long to shut down. But a fix would likely involve pushing an
update to stable, which would be more work for everyone…


Cheers,
-- 
Cyril Brulebois -- Debian Consultant @ DEBAMAX -- https://debamax.com/

Reply via email to