Date: Fri, 1 Nov 2019 09:55:35 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org Subject: Re: Increasing shutdown timeout Message-ID: <20191101025535.GB60134@admin.sibptus.ru> In-Reply-To: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> References: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
--vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andrea Venturoli wrote: >=20 > I'm having some problems on different servers with shutdown timeout. >=20 > For the curious, it ranges from bhyve VMs failing to stop (and keeping=20 > running as zombie, preventing real shutdown after init died), to NUT=20 > shutdown script not having the chance to run (so the UPS power won't get= =20 > killed and the servers won't come up again unless all batteries are=20 > 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".=20 You have NUT not apcupsd, but you may find my workaround useful. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdu56nAAoJEA2k8lmbXsY0BDwH/iYThZNQaGWndUeA9DzKRM5a 33qdUh8GWm/VEBFuTbMnoRDU08dCIkurU2YsJgMTdadMQKRwD2fvsSxEZhknW5oW DUEToJF0Edp0tpGbVK7bH5GsZnIsUeOzo+cNbGi5XipoQ7IbT3CDINOxnEfUUtT/ DOLWBDq/BFScfBMjJ8X/GcG/qoRM/LInDqBMpH/WJoVbYDILPx/hSt5cJIl+Dl5V WGjIJVozpAz2+o5uqGyS2a51HfVwEJIcvTC7JTquf27PWzi/c2lk/m2fUHxiyv6B SitV8XLa7yJNuC4F/At7WeravC+ZqBR/udKBmZ3luLFqtqI8EhLMkikCxIW/cZM= =KRdf -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191101025535.GB60134>