[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LPI and Distros...



On Sun, Jul 18, 2004 at 12:38:22PM -0500, Nathaniel Reindl wrote:
> On Sun, Jul 18, 2004 at 12:30:19PM -0500, Steven Pritchard wrote:
> > In this case, just remember that "service foo start" is equivalent to
> > "/etc/init.d/foo start".
> 
> It'd only be equivalent to that if Debian (or a distro with that
> structure) had such a script.
> 
> In Red Hat, where the script exists, it's equivalent to
> "/etc/rc.d/init.d/foo start".

$ ls -l /etc/init.d
lrwxrwxrwx  1 root root 11 May 18 16:40 /etc/init.d -> rc.d/init.d/
$ cat /etc/redhat-release 
Fedora Core release 2 (Tettnang)

$ ls -l /etc/init.d
lrwxrwxrwx  1 root root 11 Jun 19  2002 /etc/init.d -> rc.d/init.d/
$ cat /etc/redhat-release 
Red Hat Linux release 7.3 (Valhalla)

The symlink has been there for a *long* time.

The whole rc.d thing is a Red Hat-ism, and even Red Hat knows it.  :-)
I'm assuming (perhaps incorrectly) that other rpm-based distributions
either never picked up that particular RH-ism, or they have the
symlink as well.  (ISTR /etc/init.d being referenced in the LPI
exams.)

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.