[Rspamd-Users] redis not shutting down

G.W. Haywood rspamd at jubileegroup.co.uk
Fri Feb 13 08:30:01 UTC 2026


Hi there,

On Fri, 13 Feb 2026, Randy Bush wrote:

> debian 13, current postfix and rspamd.  if i need to reboot to get a new
> kernel or whatever, shutdown hangs looping trying to shut redis down.
> the net of a million lies says to use the hard reboot hammer.  this
> seems a bit brutal and possibly damaging to data.  is there a better
> path?

I'm *guessing* that systemd is causing the problem.  Not unusual in my
sometimes painful experiences with systemd.  I once had systemd killing
fsck every 90 seconds at boot.  The fsck in question took a few minutes
(it was before I moved from ext3 to ext4) so that didn't go too well.

Disabling the service as far as systemd is concerned may tell you if
systemd is in fact the problem.  To use redis you would then have to
start it some other way, e.g. manually after stopping it or a reboot.

My approach *if* this is the problem would be to remove redis from the
systemd configuration entirely so that it can't get in the way, and use
some other way to start and stop redis.  Others might tell you that you
can tweak the systemd configuration to fix it e.g. increasing timeouts,
but I'm on the hanging bench - at least as far as systemd is concerned.

I wouldn't worry about damaging data at shutdown, I guess redis won't
be doing anything by then, but don't just switch off the power.

If this doesn't help then please give more information to pin it down.

-- 

73,
Ged.


More information about the Users mailing list