Why does RHEL 5 ignore /etc/rc.local?
Hiren Patel (HN)
PatelHN at telkom.co.za
Mon Jul 9 13:25:26 UTC 2007
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]#
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the redhat-sysadmin-list
mailing list