| delorie.com/archives/browse.cgi | search |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 60FLKwGi2044903 |
| 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 60FLKwGi2044903 |
| 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=H9NCiHYZ | |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 3F4A54BA2E22 |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
| s=default; t=1768512057; | |
| bh=3M9g65eVzyBbdxgqqNCNE0yIcgFKFT9n7jeUGPtKjNc=; | |
| h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: | |
| List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
| From; | |
| b=H9NCiHYZgzhmgm8Y8yoAela8OcsXg2ByeETJa8sSNWOtKB1/Y9lfuKRI9uevMkaPd | |
| t0sQljGDMzPbMv5XUTltRQ0wKuRbBNoq33Dmkz/CVIofFAeDsWQE/kxou0CvhvL90w | |
| GEduoeAqKegnC+wg4PvROHF4Ehnx8zEAuRGNMIXc= | |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 5146D4BA2E07 |
| ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org 5146D4BA2E07 |
| ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768512038; cv=none; |
| b=hBbupheMEKarMWqHnCYaah3iapaaF5JkcQcQCGTvSvB6dZdvPsjLWLGhh91joMP/Pbx08KgIo6bPWVLK1cjopIcAt4ZvZGuKiXTq+h297GqN1hsJUY0JZ1IsPCwee9h+KNNRNsTueZZ8qWFgnzovCiSwDdS0xGG435eyj10xgo0= | |
| ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
| t=1768512038; c=relaxed/simple; | |
| bh=hAVoBXcepy8YKmWIe9OCqumos9ZKo32PgQjMAXuB2II=; | |
| h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; | |
| b=BNPcI7hcDuRNp4Ujq5xw78QdP6ON9O1exYIbF9fHJFmABxnUyxiqONaGaU0wJRDehGMuR4aXxUjQ6De+7QxOOaT2I3qX6+xTtcSzu6hUTy+gHrWMkspfWerV/5ZHjKSmLVqVVtdtzWdt4+8pd0xdCHPn/vfJ2rlrNZ7ohFr8Ed8= | |
| ARC-Authentication-Results: | i=1; server2.sourceware.org |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 5146D4BA2E07 |
| Message-ID: | <9b1b4e10-f624-4364-80b5-8e8219e9fc7e@SystematicSW.ab.ca> |
| Date: | Thu, 15 Jan 2026 14:20:35 -0700 |
| 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> | |
| <fe031e8a-fc4c-4d00-98fd-6732e11715ff AT gmail DOT com> | |
| <597ddfb6-5083-1feb-fb60-36498c2c36b0 AT wisemo DOT com> | |
| Organization: | Systematic Software |
| In-Reply-To: | <597ddfb6-5083-1feb-fb60-36498c2c36b0@wisemo.com> |
| X-Rspamd-Server: | rspamout06 |
| X-Rspamd-Queue-Id: | 63FEA20021 |
| X-Stat-Signature: | wnbkzjfbb9wtz51gtc8m6o1pbmpprs5w |
| X-Session-Marker: | 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 |
| X-Session-ID: | U2FsdGVkX18hc359e12tgmHfOGiE0+XHDG7HKmF7vfk= |
| X-HE-Tag: | 1768512036-796260 |
| X-HE-Meta: | U2FsdGVkX1/tWKz0JrVr1XGpnMRcizdjryjjv5pLqaCeLfQKK2klKdNUPauCKNnRa1iJlJvXU14tzY2iqp1gGw55UeGZ6MlfyCCxplnagMKxVfhEpoMgKRaMFNkAG9pxxJ24/YzMZMoubhoLS0m2kMM3g3n6F74LApIJiEBqbVaKlTlpijQWKD4GeSlibd+QnEPCmPdJYcd8/vFWQBTJ/eTYqoXJjyEVlehUTJCVDwVqwq7xVZvZ+JSL+v3tUZUo4M76lB+5b2XGJ7jVUutW34GCeIzUmPBh4q37A2uY7d5j90bZTh4MX7S7O7bkoJKJVEgoEgRO5L50edkgD3JvL7IKLecaDlMI |
| 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-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
| 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: | Brian Inglis via Cygwin <cygwin AT cygwin DOT com> |
| Reply-To: | cygwin AT cygwin DOT com |
| Cc: | Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca> |
| Errors-To: | cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com |
| Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 60FLKwGi2044903 |
On 2026-01-14 23:00, Jakob Bohm via Cygwin wrote:
> On 14/01/2026 18:21, Bruce Jerrick via Cygwin wrote:
>> 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.)
> .d indicates a Directory variant of the single file designated without the .d .
> Forexample, /etc/crontab.d is a directory of additional crontab files beyond
> the commonglobal entries in /etc/crontab.
>
> Nothing in a sane /etc directory should represent state,as the directory
> is supposed to be the core system-wide system config, not writableexcept
> by admin action. In particular, /etc should not be writable by automated
> thingssuch as boot executables and daemons (that belongs in /run and
> /var). On a real system rather than a compatibility layer like Cygwin,
> /etc will be part of the a small read-only root mount that gets remounted
> r/w only during relevant sysadmin tasks such as installing and removing
> packages.
>
> /etc/default/ is supposed to be a directory of per package config overrides,
> such aschoosing additional invocation options for daemons started by
> scripts in /etc/init.d/ .
>
> /etc/default/etc/inittab is clearly out of place.
Nothing in Cygwin packages should install anything under /etc/default/.
>> 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.
Under Cygwin /etc/defaults/ - note plural - contain originals of package system
config files to be installed under /etc/..., /usr/share/.../, or
/var/{games,lib}/.../ by package postinstall scripts if not already present, and
removed on package upgrades by preremove scripts if not modified by the admin
since install, determined by comparison with the original under /etc/defaults/,
otherwise the locally modified config file is retained.
This includes the user home directory setup files:
$ la /etc/defaults/etc/skel/
.bash_profile .bashrc .inputrc .mkshrc .profile
Some entries under /etc/ are symlinks:
$ find /etc/ -maxdepth 1 -type l | xargs -r ls -glo
lrwxrwxrwx 1 12 Aug 29 2019 /etc/aliases -> mail/aliases
lrwxrwxrwx 1 13 Nov 2 2020 /etc/gaminrc -> gamin/gaminrc
lrwxrwxrwx 1 53 Sep 1 2015 /etc/hosts ->
../proc/cygdrive/c/Windows/System32/drivers/etc/hosts
lrwxrwxrwx 1 37 Jan 12 15:35 /etc/leap-seconds.list ->
/usr/share/zoneinfo/leap-seconds.list
lrwxrwxrwx 1 26 May 14 2013 /etc/machine-id -> ../var/lib/dbus/machine-id
lrwxrwxrwx 1 21 Apr 9 2024 /etc/mime.types -> /usr/share/mime/types
lrwxrwxrwx 1 12 Sep 1 2015 /etc/mtab -> /proc/mounts
lrwxrwxrwx 1 56 Sep 1 2015 /etc/networks ->
../proc/cygdrive/c/Windows/System32/drivers/etc/networks
lrwxrwxrwx 1 56 Sep 1 2015 /etc/protocols ->
../proc/cygdrive/c/Windows/System32/drivers/etc/protocol
lrwxrwxrwx 1 56 Sep 1 2015 /etc/services ->
../proc/cygdrive/c/Windows/System32/drivers/etc/services
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |