From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from alyss.skarnet.org (alyss.skarnet.org [95.142.172.232]) by inbox.vuxu.org (Postfix) with SMTP id AD2A230C02 for ; Sun, 24 Nov 2024 13:26:34 +0100 (CET) Received: (qmail 19044 invoked by uid 89); 24 Nov 2024 12:26:59 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 19037 invoked from network); 24 Nov 2024 12:26:59 -0000 X-Virus-Scanned: SPAM Filter at disroot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1732451177; bh=2Sp0ZahCq3cxCHMRVmMfrlTyQkdUcJheRIRcfEIG0/8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=XR7ejzk+hcxPDGdxUOjzlFf0Mx/CETHcjImy+dh8AUfUxHFOwo1clSFAXHZ+vNfMJ a0fd+OQXzbUup5mmfowADFHpp2XEbLKAM2lXI9RuvIaJndQplcI1SBYOP+8FWxX47K NLhMf5aMOI42pT6sexzdoAsNnKx37UhwY/tRZxz5+fy2sPnczWg1reY4tGb7+P+/h/ k8OWMygyhG13RFW12FDefbfskiZNXvi7jw3FkhLK9VBJJ8CXiuz2vCBiJn7DYOYSPa opwjcWePKspfaj29EJ9gZSDOT7S4z3GDY4t1pO7ckPWfWAgHslvuxygc9DMfKVz6Ke M4HIUwV0ke6TQ== MIME-Version: 1.0 Date: Sun, 24 Nov 2024 13:26:17 +0100 From: "lumaro via supervision" Reply-To: lumaro To: =?UTF-8?Q?Ho=C3=ABl_B=C3=A9zier?= Cc: supervision@list.skarnet.org Subject: Re: Reboot or Shutdown commands dont exit from tty auto In-Reply-To: References: Message-ID: <94f3877d06721f3f2251128b70239fea@disroot.org> X-Sender: lumaro@disroot.org Content-Type: multipart/alternative; boundary="=_01518ab4a094caafc1aece9f81430dc1" --=_01518ab4a094caafc1aece9f81430dc1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed El 2024-11-24 11:57, Hoël Bézier escribió: > Am So, Nov 24, 2024 am 09:47:56 +0100 schrieb lumaro via supervision: > Hi all, > > When I try to restart or shutdown from the tty, user or root, the > process displays a message and waits until "exit" is executed and then > continues with the restart or shutdown... > > Example: > ---------- > $ doas reboot > > *** WARNING *** > The system id going down NOW! > $ > ---------- Then run "exit" and *shutdownd*" continues the process ... My scripts: I have the same scripts as you and did not experience this issue, so I guess it comes from elsewhere. My best guess would be your tty is part of your supervised processes, and is not torn down by your service manager until after you've closed it. And since shutdownd usually waits for s6-rc to stop the whole service tree before going on, that might explain it. Hoël Hi ! Thank you for the prompt response, indeed "agetty" is supervised. s6-svscan-+-at-spi-bus-laun---3*[{at-spi-bus-laun}] |-firefox-+-Isolated Servic---30*[{Isolated Servic}] | |-5*[Isolated Web Co---27*[{Isolated Web Co}]] | |-Isolated Web Co---35*[{Isolated Web Co}] | |-Isolated Web Co---31*[{Isolated Web Co}] | |-3*[Isolated Web Co---26*[{Isolated Web Co}]] | |-Privileged Cont---27*[{Privileged Cont}] | |-RDD Process---13*[{RDD Process}] | |-Socket Process---5*[{Socket Process}] | |-Utility Process---4*[{Utility Process}] | |-Web Content---19*[{Web Content}] | |-2*[Web Content---18*[{Web Content}]] | |-WebExtensions---26*[{WebExtensions}] | |-firefox | `-128*[{firefox}] |-foot-+-mksh | |-mksh---pstree | |-mksh---vim---{vim} | `-48*[{foot}] |-3*[footclient] |-gvfsd---3*[{gvfsd}] |-2*[s6-supervise---s6-ipcserverd] |-4*[s6-supervise---s6-log] |-s6-supervise---s6-linux-init-s |-s6-supervise---agetty |-s6-supervise---dbus-run-sessio-+-dbus-daemon | `-sway---23*[{sway}] |-7*[s6-supervise] |-s6-supervise---seatd |-s6-supervise---ucspilogd |-s6-supervise---udevd |-s6-supervise---s6-fdholderd `-swaybg Would it then be correct to remove agetty from the supervised? Thanks, Luis. --=_01518ab4a094caafc1aece9f81430dc1--