From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13248 invoked from network); 25 Jan 2022 19:15:08 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2022 19:15:08 -0000 Received: (qmail 5319 invoked by uid 89); 25 Jan 2022 19:15:30 -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 5312 invoked from network); 25 Jan 2022 19:15:30 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=3ey3ln3GFpRKYhNYdeuEYf798Hhoi80wwxQNrFZkGhA=; b=lDhLPgQlOEq4S4YIh4l2/ZeRG8UPpFPRoVm+9OW4imLIlz3pxMojYRYLpXxQlKYOFS 0luENickEQ2ryUUcvUGcIKhl31CE5HhDbGrLXAAVA4WBKbptOtA9FTiK2K/fsvfULIir Abzid3BiHp1H+ji14AveWH7blduiE9XHaX2c4OLYIX/gLxtUDlUPXIED2fuovR2AdHZ9 9Qsoc4rKIBo5u5SoSVK//5LLQKw2yANZEBCwLSm0dsQfMUQYZZN2b6wFhy0fkyuPhhfa BhTO9TkP7t57snT0rox3x951dp27sjk9xnF/5hYsViE4JS0xc/R0wvYXptPPDPIvBKZt jjGQ== X-Gm-Message-State: AOAM531Eni7ewR/ZtvqEuYANAwaXHLTGaFHnySSm9+vuWNXRzrb/A5xT G3CBaOM5j5U8EXBo5EzAYcw= X-Google-Smtp-Source: ABdhPJxsRxrmMua+HaNUxpCy/snV17BS/DsbnbU1vKE4ipfMhlbQuExQ7hDELxF6yyIgTjAJtDIxnQ== X-Received: by 2002:a5d:47ad:: with SMTP id 13mr18805195wrb.664.1643138102718; Tue, 25 Jan 2022 11:15:02 -0800 (PST) From: Leah Neukirchen To: Domenico Panella Cc: supervision@list.skarnet.org Subject: Re: Single user mode problem References: <37344717.Ad1ZaxnVCB@susedomenico> Date: Tue, 25 Jan 2022 20:15:01 +0100 In-Reply-To: <37344717.Ad1ZaxnVCB@susedomenico> (Domenico Panella's message of "Mon, 24 Jan 2022 14:36:40 +0100") Message-ID: <87y233hbka.fsf@vuxu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Domenico Panella writes: > Hi all, > > I'm using runit init system on slackware using the void linux init scripts. > All works like a charm except sigle user mode which just run sulogin. > The service goes in loop not showing the prompt for some reason. > This is the service: > > /etc/sv/sulogin/run > > #!/bin/sh > [ -r conf ] && . ./conf > read -r tty < /sys/class/tty/console/active > tty=/dev/${tty##* } > exec /usr/bin/setsid /sbin/sulogin ${OPTS:=-p} < $tty >$tty 2>&1 > > What am i wronging? This is a bug in Void, setsid backgrounds when it it process group leader already. Either remove the /usr/bin/setsid or replace it with "chpst -P". -- Leah Neukirchen https://leahneukirchen.org/