NetBSD Problem Report #58861
From martin@aprisoft.de Thu Nov 28 16:56:24 2024
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B2C931A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Nov 2024 16:56:24 +0000 (UTC)
Message-Id: <20241128165614.EA78A5CC79B@emmas.aprisoft.de>
Date: Thu, 28 Nov 2024 17:56:14 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: service(1) should have an option to restart all daemons
X-Send-Pr-Version: 3.95
>Number: 58861
>Category: bin
>Synopsis: service(1) should have an option to restart all daemons
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Nov 28 17:00:00 +0000 2024
>Originator: Martin Husemann
>Release: NetBSD 10.99.12
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD big-apple.aprisoft.de 10.99.12 NetBSD 10.99.12 (POWERMAC_G5.MP) #121: Wed Sep 25 13:34:14 CEST 2024 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/macppc/compile/POWERMAC_G5.MP macppc
Architecture: powerpc
Machine: macppc
>Description:
The service(1) helper script should gain two features:
- a option to list all services that currently have a daemon
process running (simmilar to "service -e" but checking for
pidfile in the rc.d script, plus file existance and valid
pid in it) -- maybe: service -d
- a command to restart all services output by above option,
i.e. run something like "$script restart" for everything
output by "service -d" -- maybe: service restart_all
That way after a binary update of userland the user (or sysinst) could simply
do "service restart_all" in case they can't reboot immediately.
Updating e.g. ssh/sshd sometimes can make the running sshd(8) stop working,
as the child/parent protocol changed.
>How-To-Repeat:
n/a
>Fix:
yes please
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.