delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/01/14/12:22:50

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 60EHModB888355
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 60EHModB888355
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=GAUVaJyW
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADE7E4BA2E34
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1768411368;
bh=dl9H5OQlLCu2d4EbeYWSqeEf6iZCxBdf7ReWXZoxgrA=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=GAUVaJyWF73Ro2E5bvZemoWLkMu1e6+JZ77zeT7vRUHlkBTalcOnhf4WbM/Sj6tYv
vbJLj42L0FT3atHA+l8Dhursrq0dI40geZuyx1bjKhDo2ORTcfN6+7+zvUcpUDQ05/
qufSKywl68Rdq2W055nmbx4KDg1wTGssjd8/8EnE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA71F4BA2E04
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA71F4BA2E04
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768411319; cv=none;
b=xtyWL694X6v49+0PaRvxT7YOyJcvCEZ7VThf98Mg6iF8rDuGJXizwk+WPrm60/J7c46RmATEZUDUGPVCYyIze1ACfgbOWrufqamnb1Rb2OTbTCY//Sc5ZlMfBBsbpPeEboFrFgB7BVr/PLw2ULaNyHELgkEdms/WOF2XjtXEjaY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1768411319; c=relaxed/simple;
bh=qZwzwWEHUimCfOaFyZYreQ2qaArJPQ9XN7Dqwz0GMZ4=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=SrR/B2ZKLZCwik+1Nxpsqv3jGmsTUnoJG4mgChnb3Co+5yZwxyLvE4Fckuc3RHyADvTBr5VZiSDPyza0RJrHy41jateL+f6LmqziqkVjUdY7IletD8ufz/QYSu7pier1fcm0okaJu5r7fJYNfCOs83CGxKtYgzQcwu/AzDZcLw8=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA71F4BA2E04
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1768411319; x=1769016119;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=XS203y0jbO4Y+iRu6vVHEQWEzxh9i3A3qykRiZWHlCo=;
b=PBRhUkw4X2c8acqd44xkko8j3dMYKSfGc+EpGivEebAHZsHm4rkIpgxcXZ37n/+g0R
z/4Ysn6n2eB2NH8zCwr2S+xpxx+8XgU8kohziVfDLJjhmpFPkEzaBDUzgHf9eDpQ93sZ
jko8KmWGWRK0jtqxjQ1lln91oXQPi9gthzIBulKQoCBXZrrPobB5EZGUDCtFEMPCLZDp
1GV0ip/eWMoNnlhPg9a8TKVmh4vGJ9qi8HU2koV8W0XkgzKr95pGXhgFd0nX6FB3X1Yq
PkuwgoukwdHlPBvr8k+StKaWFmpNOoeYwOfTQl+USnoJMO1N2D9LKKbgQ0cou+fVSK9Q
nMDA==
X-Gm-Message-State: AOJu0YwxdD6m/zVmFcCwODszfTEA/tZf0udpCSUF9uyYXoNrBJNgh0jZ
2IuPh0Ojz7gkFIBK1CZlCuiANlNCgfgDWGkguyml3jS3kYqsWKrs1+fc7KqYFA==
X-Gm-Gg: AY/fxX7Z3Kg0okqB82WoHX+CKUj8DgXzykonz0wIdfz8CwSLF1ZB7612c8qE69npfa7
Ou1qxHj7OiR+/nGzWrff89+DaWP3ORSb1HXh7+taZBJWu1ADZG+8M1qmmq+WUjpEml+VDA8K05+
T5DxjehZV2ZRLtidOuP6She3Nrvf/M0phq9VZ/mXhafZpNlIUZwpF+8Ne2uyxNB6fGc/Q0vNoOa
Y51Smm3/SL4XBM5gb76dMqJm5HvmdXaRbRyzcZIXpGUhXkvIzAzkza73vcFrAVF45kYciWW7Wsj
rRCQYa+gRNISMe5V+jp0de1opyoWYjtLNEC06icpR1xGKdUWhJ1tFbCy1zJ3zqpPuGuqyAAflus
8YQkMR8OlmTMF+LNzl+9hI2b6tNYx5eZZa6bmo1Cjkh5Mz4xr2vXRVUhPv2XoEbxiLpIZvXISE2
XeiaO3Ur1Y
X-Received: by 2002:a05:620a:4723:b0:8c5:2dbc:624b with SMTP id
af79cd13be357-8c52fbe2514mr497606385a.46.1768411318608;
Wed, 14 Jan 2026 09:21:58 -0800 (PST)
Message-ID: <fe031e8a-fc4c-4d00-98fd-6732e11715ff@gmail.com>
Date: Wed, 14 Jan 2026 09:21:55 -0800
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: init-config has incorrect path for /etc/rc.d/rc [FIX]
To: cygwin AT cygwin DOT com
References: <40d280bb-3491-4745-bf8f-bb7c8a40a0c4 AT gmail DOT com>
<2129011334 DOT 56100 DOT 1768370973438 AT mail DOT yahoo DOT com>
In-Reply-To: <2129011334.56100.1768370973438@mail.yahoo.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Bruce Jerrick via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Bruce Jerrick <bmj001 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 1/13/26 22:09, matthew patton wrote:

> or is it a case someone broke/removed the symlink from /etc/rc to /etc/rc.d/rc? Or more correctly /etc/rc -> /etc/init.d/rc.Removed, I believe, not broke.  See below re executables in /etc .

> /etc/rc dates back to SunOS v4 at least. Similarly /etc/init and /sbin/init.
Long before any SunOS or BSD.  It was probably in Version 6 Unix .
Way back then (as they say), /etc contained "system" executables, as 
well as config files.
The executables were eventually moved to /sbin .  I don't remember if 
that happened in BSD or SunOS.  It was /sbin, then, not /usr/sbin, 
because they had to be available before /usr was mounted (SunOS commonly 
got a read-only /usr via NFS).

> /etc/rc.d (and children like /etc/rc[0-6].d) is more of a "expression of state" directory.
Agreed, but only in regard to /etc/rc.d/rc[0-6].d .
(A better name for /etc/rc.d (or /etc/init.d) would be /etc/init, since 
a ".d" suffix usually implies optional contents.)

> The actual scripts are supposed to live in /etc/init.d/.
See my "ideal" fix below.
'rc' and rc.sysinit are special cases -- they're called via
/etc/inittab, and don't have to be added to the rc[0-6].d dirs.
rc.local is also a special case -- it's source'd rc.sysinit .

> Your local /etc/inittab should be FULL of references to /etc/init.d/rc like so:
> ...
> # System initialization
> si::sysinit:/etc/init.d/rcS
> 
> # Runlevel scriptsI woul
> l0:0:wait:/etc/init.d/rc 0
> l1:1:wait:/etc/init.d/rc 1
> l2:2:wait:/etc/init.d/rc 2
> l3:3:wait:/etc/init.d/rc 3
> l4:4:wait:/etc/init.d/rc 4
> l5:5:wait:/etc/init.d/rc 5
> l6:6:wait:/etc/init.d/rc 6
Not so in /etc/defaults/etc/inittab -- those subdirs are all "rc.d", not 
init.d .  See my comments above re 'rc' being a special case.


In any case, the patches I suggested are a minimal fix to a broken
init-config (I'm not being argumentative, just pragmatic :).

I would regard the "ideal" fix to be:
   Rename /etc/rc.d/ to be /etc/init/ .
   Retain rc, rc.sysinit, and rc.local in /etc/init/ .
   Move /etc/rc.d/init.d/functions to /etc/init/ .
   Reserve /etc/init/init.d/ for locally-added scripts.
   (And, of course, tweak all the affected paths everywhere.
    Unfortunately, that includes /usr/sbin/chkconfig.exe .)

-- Bruce Jerrick

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019