From nobody Mon Jun 15 08:52:32 2026 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gf3m24fGSz6h9ky for ; Mon, 15 Jun 2026 08:52:34 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gf3m1703qz3vdp; Mon, 15 Jun 2026 08:52:33 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781513554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FoIZrdrSc6gpPuqFWpvFMqRim+v4vajPNa+btUlt4Jc=; b=RYYGwkHkc6pQAZxsVsUQf5PWf+6mvm8GVRa+xA7H3pU8EcWpT0NvrO9koTx2xIeUp5izjE YsgOrw1J5s8gNm8eA34p82ISLFJCjWbE82aifdwhD0fym7UH0zSXkBCVOwzMm+n2sqsbNL +vQJLdm9KTvBnMRSCXxnI5MazrhW9JRxgyyzGIgaXne/l0qWAsx59gEXQBZLZ4H6UblRgP Bt0muJmpflz4QrHoVpqkfawETHbw++tU14h17hWKQlcugjVKtUiHmkvsE3s3nTbJfN1FkC hQNzKT4izIdFrSxjgj9Kd/exBpMjzJ4uYU7z3CDgKUVv9JPMN4jSU9qscQkWGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781513554; a=rsa-sha256; cv=none; b=cMZIcC9RyHHIxs461Ll2TT1rLKyM/Esv1XPaTfZeoKJWHMXJqBRT5+QOo784+ap7ESnIvJ X9gmCAwNtF8E6AGmV891qj+3llaWU6cGcs7jnM+LaoDCSscaf72z2LeSt1rlhL4TOfKfwy 5301PO2eAujf3DUzWNH/D2UEHLbNuec2U0A/Sa0Qkk0W06e7O/bfankbdYzn9YFni9NV+D JqEm8nXO0zQlqAORGszELbf2ua49tg6qmDm858rUkfKmq4l4ANp1Zb0GjvK2qMQ39c9pD8 slmXKZQ9l+OKrmhljjLkapcoKUpepIz/MVfu5cJrkhXFGicvUVXuYhfLHUvjiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781513554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FoIZrdrSc6gpPuqFWpvFMqRim+v4vajPNa+btUlt4Jc=; b=HEyeBwPnjWDD+wq4x+98Pr8v21mU3O46iEoUm1sVlPeF3cp4ro7VxE0Sjv67qeR/Q6gpJP DK7Bjtl37mdkVGanBFfSIWOKm4cakVcxBZJpWp83aLTs+YMbYhtVri6LeefGLPEx7Ch5TX vdY4Y83FwizM9w/HeAJWpaqzG5dUe2O0nYulzlpwiyau3fbhdLGs/3SLtOC37H4qvTxhcI mgkEGskC+hvFJAXgB15fKk239lx6nDSTFdH78qkcMxC1n5n+NnXGPw/rDulD7ZM4Ia1Sos 8d5mPSVbe99/N4Ev/2WWoF39A7qI7EaW20UdYqh+A1eZr5QXiXlfN0aalZTpMw== Received: from ltc.des.dev (2a01cb0585070b0036e894fffeca9834.ipv6.abo.wanadoo.fr [IPv6:2a01:cb05:8507:b00:36e8:94ff:feca:9834]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gf3m15r1jzHdr; Mon, 15 Jun 2026 08:52:33 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 47B33B030F; Mon, 15 Jun 2026 10:52:32 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Baptiste Daroussin Cc: hackers@FreeBSD.org Subject: Re: rcd(8) - new service manager daemon In-Reply-To: (Baptiste Daroussin's message of "Sun, 14 Jun 2026 21:26:29 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 15 Jun 2026 10:52:32 +0200 Message-ID: <86eci85gof.fsf@ltc.des.dev> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Baptiste Daroussin writes: > - 2 (later): Commit init(8) changes to call rcd when present (falling > back to /etc/rc otherwise). Provide a /etc/rc wrapper that invokes > rcd for systems that want to switch. I think that ultimately rcd should _be_ init, and should support systemd-style services (where the service doesn't daemonize and logs to stderr). I haven't looked at the code, but I suspect that very little is missing to make that possible: rcd needs to be prepared to reap processes it didn't fork, and it needs to be able to read /etc/ttys and manage ttys (which aren't much different from any other service). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org