Re: init-config has incorrect path for /etc/rc.d/rc [FIX]

matthew patton via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
> The path to /etc/rc.d/rc in /usr/bin/init-config (initscripts-0.9-4)
> is incorrect -- it is given as ${SYSCONFDIR}/rc (where SYSCONFDIR=/etc).
> That path should be ${SYSCONFDIR}/rc.d/rc .  This will fix it:

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.
/etc/rc dates back to SunOS v4 at least. Similarly /etc/init and /sbin/init.

/etc/rc.d (and children like /etc/rc[0-6].d) is more of a "expression of state" directory. The actual scripts are supposed to live in /etc/init.d/. 

Your local /etc/inittab should be FULL of references to /etc/init.d/rc like so:

# Default runlevel
id:3:initdefault:

# System initialization
si::sysinit:/etc/init.d/rcS

# Runlevel scripts
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

-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.