Increasing shutdown timeout

Victor Sudakov vas at sibptus.ru
Fri Nov 1 02:55:37 UTC 2019


Andrea Venturoli wrote:
> 
> I'm having some problems on different servers with shutdown timeout.
> 
> For the curious, it ranges from bhyve VMs failing to stop (and keeping 
> running as zombie, preventing real shutdown after init died), to NUT 
> shutdown script not having the chance to run (so the UPS power won't get 
> killed and the servers won't come up again unless all batteries are 
> fully drained before the power comes back).

I've had a lot of trouble with VMs not shutting down properly after
apcupsd ininitates a shutdown. I had to place an additional script:

#!/bin/sh
/usr/bin/logger -p daemon.warn UPS stopping all VMs
/usr/local/sbin/vm stopall
/usr/bin/logger -p daemon.warn VMs stopped

as "/usr/local/etc/apcupsd/doshutdown". 

You have NUT not apcupsd, but you may find my workaround useful.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20191101/9f3156d2/attachment.sig>


More information about the freebsd-questions mailing list