Why does RHEL 5 ignore /etc/rc.local?

Timo Schoeler tschoeler at wernermedia.de
Mon Jul 9 13:33:47 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thus "Hiren Patel (HN)" <PatelHN at telkom.co.za> spake on Mon, 09 Jul
2007 15:25:26 +0200:

> 
> yip Barry is right about the start scripts for local, 
> this is what i have on system that has not been updated at all.
> 
> [root at localhost rc.d]# pwd
> /etc/rc.d
> [root at localhost rc.d]# find . -name '*local*' -exec ls -l {} \;
> -rwxr-xr-x 1 root root 220 Jun 23  2003 ./rc.local
> lrwxrwxrwx 1 root root 11 Apr 17 14:53 ./rc3.d/S99local -> ../rc.local
> lrwxrwxrwx 1 root root 11 Apr 17 14:53 ./rc2.d/S99local -> ../rc.local
> lrwxrwxrwx 1 root root 11 Apr 17 14:53 ./rc5.d/S99local -> ../rc.local
> lrwxrwxrwx 1 root root 11 Apr 17 14:53 ./rc4.d/S99local -> ../rc.local
> [root at localhost rc.d]# cat /etc/redhat-release 
> Red Hat Enterprise Linux Server release 5 (Tikanga)
> [root at localhost rc.d]# 

Thanks (esp. Barry), this was a bull's eye.

Sometimes I'm too blind to see this trivial stuff because I'm used to
it that my systems run (see GPG's stuff ;).

Seems that some recent update broke the symbolic link on my machine; a
not-updated machine still has it. Will apply the updates on it and
probably it will fade away. Oh, well...

No pun intended, thanks again,

Timo

> On Mon, 2007-07-09 at 08:13 -0500, Barry Brimer wrote:
> > > I run uCARP [0] on a RHEL 5 machine (with recent updates) and it
> > > *did* run until recently, i.e. 'did run' means that it was started
> > > from /etc/rc.local when booting.
> > >
> > > (NB: I couldn't find a *functioning* package on the net, so I
> > > built it from src; however, I didn't have time yet to code some
> > > RC script for this... That's why I use /etc/rc.local.)
> > >
> > > When I pulled the updates on June 22nd it seems to have b0rked my
> > > machine -- it totally ignores /etc/rc.local (I tested this by
> > > touch(0) ing a file from inside /etc/rc.local -- the file wasn't
> > > created, no output/error message on console, though).
> > 
> > Usually '/etc/rc.local' is a symlink to '/etc/rc.d/rc.local'.  By
> > any chance have these become separated and are separate files?  If
> > so, I believe that '/etc/rc.d/rc.local' is what actually gets run,
> > and not '/etc/rc.local'.  Also, although quite unlikely, is there
> > an 'S' script for local in the runlevel you are booting into?  If
> > not, running 'chkconfig local on' will handle that.  Finally, what
> > happens if you run '/etc/rc.d/rc.local' as root from the command
> > line?
> > 
> > HTH,
> > Barry
> > 
> > --
> > redhat-sysadmin-list mailing list
> > redhat-sysadmin-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
> -- 
> Hiren Patel | Ops Specialist | ISS Infrastructure | Telkom
> E-Mail:  patelhn at telkom.co.za Office: +27 12 680 3460 | Fax: +27 12
> 680 3299 | Cell: +27 73 456 7980
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at 
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
> 


- -- 
Timo Schoeler (Unix freak, IT team leader)
Key fingerprint = 592C 8AA1 FC66 7BFB F3DA  B4DA 707C F906 087F 9768

mailto:tschoeler at wernermedia.de
At Desk +49 (0)30 2 69 47-413 | Company -400 | Fax -300

Werner Media Group GmbH | http://www.wernermedia.de
Grossbeerenstrasse 186-192, 12277 Berlin, Germany

Geschaeftsfuehrer: Nicholas Werner
Amtsgericht/Handelsregister: Sitz Berlin,
Amtsgericht Charlottenburg, HRB 80337,
Ust-ID. DE217618105, St.-Nr. 29/032/07344
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (OpenBSD)

iD8DBQFGkjk7cHz5Bgh/l2gRAiSoAKClGKJM3gr9xFBAGbeVsy+pUl5t/ACdF9AK
HQGMPT23pQBvL8zGSfp57u0=
=z+hV
-----END PGP SIGNATURE-----




More information about the redhat-sysadmin-list mailing list