From owner-freebsd-questions@freebsd.org Thu Oct 31 11:48:10 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 163861A534E for ; Thu, 31 Oct 2019 11:48:10 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 473k944mldz49cZ for ; Thu, 31 Oct 2019 11:48:08 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id x9VBlu4V009365 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 31 Oct 2019 12:47:58 +0100 (CET) (envelope-from ml@netfence.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfence.it; s=201911; t=1572522478; bh=GSmkjYoU9DpJn3cR89GxnAMeuXDPo2td2oIb3jHrt0g=; h=To:From:Subject:Date; b=TQVEYkd4nvn5YXmmHbIwrVQF0NzaYWwn7lW4SaATx4QENVo+fLbXd52f/9rBD/06B FStiwHEfh8Cswba7BhvYm3IkN9zWCb81k8A23HGrJzLgoxAdKeATtPJ9n2l82pgDO1 K6svPCotOWNY9fQnMnyu8RBtQ/nNmELLKmuMZsTU= X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu To: freebsd-questions@freebsd.org From: Andrea Venturoli Subject: Increasing shutdown timeout Message-ID: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> Date: Thu, 31 Oct 2019 12:47:56 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 473k944mldz49cZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netfence.it header.s=201911 header.b=TQVEYkd4; dmarc=none; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-4.49 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netfence.it:s=201911]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[netfence.it:+]; DMARC_NA(0.00)[netfence.it]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.99)[ip: (-6.48), ipnet: 2.44.0.0/16(-3.24), asn: 30722(-0.26), country: IT(0.03)]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; 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: Thu, 31 Oct 2019 11:48:10 -0000 Hello. 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). First: why not? Are there good reasons NOT to increase this timeout? Possible side effects? Any experience with an high value? Second: how? I see there's "rcshutdown_timeout" that can be set in /etc/rc.conf, but also "kern.init_shutdown_timeout" sysctl. I read the latter is obsolete and not used since years. Seeing it there raises the doubt. Is it still valid? Should I increase both? bye & Thanks av.