From owner-freebsd-questions@freebsd.org Fri Nov 1 02:55:37 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B51E117FE2F for ; Fri, 1 Nov 2019 02:55:37 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4746J91bTtz4BHn for ; Fri, 1 Nov 2019 02:55:36 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=g/95r1tndlN8CwARjwdvVn8rhAqJPpu+GxARB8jQGtE=; b=M5XKHnUkFzUEW/T6aMl5crn+6v vM+Jh6E4wWJJSW6vQbJbl/Hv4YTsQFdQq6eC5uZgEGejfsm0VVXqewX6j/ot2lB0zpDavDpIzUYHO gz7nxvqbyBdOwbFTtiBy2gWkhzaavD3j8ac/ziO5RTubWT08gS6cvs8+fTVj/0xLb1/Q=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQN67-000Fin-NW for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 09:55:35 +0700 Date: Fri, 1 Nov 2019 09:55:35 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: Increasing shutdown timeout Message-ID: <20191101025535.GB60134@admin.sibptus.ru> References: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 4746J91bTtz4BHn X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=M5XKHnUk; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.53), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 02:55:37 -0000 --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--