Mombu the GNU Linux Forum

  Mombu the GNU Linux Forum > GNU_Linux > 2008.1 - /etc/rc.local does not run at boot


User Name
Password
REGISTER NOW! Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
1 18th May 04:34
giorgio garrone
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot



Hello.
I am pretty sure that my /etc/rc.local does not run at boot.
I have been using Mandr* since 8.x but I am no expert; If I remember
correctly this is my first message to this board. Sorry for the errors,
if any. I try to explain my inquiry at my best in the followings. At the
moment I am stuck.

I discovered the problem when I tried to start at boot:
/usr/local/bin/noip2 (this command works from root command line). So I
added the above line to /etc/rc.d/rc.local. It does not start at boot. I
added other easy testing lines (/bin/touch/home/myuser/test1.txt). They
don't run at boot.

So I opened a root bash and typed: # /etc/rc.d/rc.local.
To my surprise, it runs and it starts noip2, and it runs all the test
commands I added.
The same for: # /etc/rc.local

Then I started my inquiry.
I checked etc/rc.d/rc.local. It seems to contain no control characters.
End of lines are UNIX stile. Checked permission, executable, OK. First
line is “#!/bin/sh” (well, it runs from command line, right?).

Then I went ahead: runlevel says: N 5. So for runlevel 5, I found
/etc/rc5/S99local (a link to /etc/rc.local): OK. Permission OK. There
is also a file: /etc/rc5/S99wine that runs (I don't think it can
interfere?).
There is also /etc/rc.d/rc5/S99local (another link to our beloved
/etc/rc.d/rc.local).

Stuck. Ignorance level reached.

Any suggestion?
Thanks for your attention.

Hardware: MB Asus P5K-SE + Intel Dual Core 2.66 Ghz + 4GB RAM + Nvidia
8600GT 512Mb
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 18th May 04:34
wes newell
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot



I couldn't find a call for rc.local in rc.sysinit. I've never used it
anyway. Make it /etc/rc.serial and it will run. /etc/rc.sysinit checks for
the existence of this file and runs it on boot if it exist.

[wes@wes2 ~]$ cat /etc/rc.d/rc.sysinit|grep rc.local
[wes@wes2 ~]$ cat /etc/rc.d/rc.sysinit|grep rc.serial
if [ -f /etc/rc.serial ]; then
. /etc/rc.serial
[wes@wes2 ~]$


--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
  Reply With Quote
3 18th May 04:34
jim beard
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


Which editor did you use to add the lines? It must be an ASCII
editor, not a wordprocessor.


This seems like all is well.


Where did the above come from? If it exists, it should be
a symbolic link to /etc/rc.d/rc.local rather than a separate file.
On my system, it does not exist.


What is this /etc/rc5 mentioned again? Is this a symlink to /etc/rc.d/rc5.d ?

Yet again. If you are going to have both /etc/rc5 and
/etc/rc.d/rc5.d then I would change S99wine to S98wine in both
so it will run before S99local. Watch out as these may be
symlinks rather than independent directories/files.


I would remove the /etc/rc.local and /etc/rc5, make sure permissions
on /etc/rc.d/rc.local are 755 (-rwxr-xr-x), amd make sure all
S99local and other links to rc.local are symbolic links (created
with ln -s existingfile newlink).

Cheers!

jim b.

--
UNIX is not user-unfriendly; it merely
expects users to be computer-friendly.
  Reply With Quote
4 18th May 04:34
wes newell
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


BTW, I no longer run this, but let the router (DLink DI-604) handle this
automatically. So if you have a router, you might want to check and see if
it supports auto udating your no-ip.com account. I would think most would
these days.

--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


5 18th May 10:14
giorgio garrone
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


Wes Newell:

Thanks for all the prompt answers. My results so far:

[root@che /]# cat /etc/rc.d/rc.sysinit | grep rc.serial
[root@che /]#

[root@che /]# cat /etc/rc.d/rc.sysinit | grep rc.local
[root@che /]#

This *should* mean: "I don't call rc.local. I don't call rc.serial"

BUT giving:
[root@che /]# cat /etc/rc.d/rc.sysinit | grep rc.
I can read (among a lot of lines):
if [ -x /etc/rc.early.local ]; then
. /etc/rc.early.local

Comment. rc.early.local? I will give it a try and then report publicly.
I feel a bit numb now. I am running Mandriva 2008.1 FREE. My settings
are standard, never fiddled before with this stuff. Other variants of
Mandriva are so different?
I remember that at least in 2008.0 I successfully used rc.local to start
my "payload" (maybe I have to quit playing with computers, being ready
for geriatrics).

As far as the other kind answers are concerned:
- No, my junk-router can't do the noip2's job (time to buy another one;
I will search how much it costs your DLink DI-604 here, if it works for
you under Mandriva, well, maybe I'll like it).
- To Jim Beard: renaming S99wine to S98wine didn't work;
and you are right, the 'real' tree is under rc.d (while rc*.d are linked
to it).

Geez... regards.
  Reply With Quote
6 18th May 10:14
aragorn
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


You could simply edit that file and make it call /rc.local/ instead. :-)

/rc.local/ would indeed be the de facto standard for site-specific stuff. ;-)


That is indeed how RedHat has always implemented the System V runlevels, and
Mandriva started off as a RedHat spinoff, so it adheres to that standard.
SuSE works similarly but uses (or at least used to use) runlevel 4 for
graphical login.

Debian and Gentoo have a slightly different runlevel layout, but they also
use the scripts under a common directory and symlinks calling those scripts
from within the runlevel-specific directories.

--
*Aragorn*
(registered GNU/Linux user #223157)
  Reply With Quote
7 18th May 10:14
giorgio garrone
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


Aragorn:


So I did (rc.early.local, if exists, is loaded _early_ that is not my
case). Adding the following lines at the _end_ of /etc/rc.d/rc.sysinit
did the job.

if [ -f /etc/rc.local ]; then
. /etc/rc.local
fi

Something new that I learned.
End of the story. Why was it missing, that's another story.
Thank you all!
  Reply With Quote
8 18th May 10:14
bit twister
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


To the op, if you see scripts at the same runlevel, they will be
started in the order ls shows them. Example:
$ ls -1 /etc/rc.d/rc5.d/S99*
/etc/rc.d/rc5.d/S99local
/etc/rc.d/rc5.d/S99named
/etc/rc.d/rc5.d/S99nfs-server /etc/rc.d/rc5.d/S99ntpd /etc/rc.d/rc5.d/S99postfix

Hmmmm, I would suggest not dinking with links by hand.

If you are going to dink with when a script is to be run
you might want to change the any values found in the init script
and use chkconfig to make the link changes you make in init script.

See following snippet lines marked with <=====

#
# chkconfig: 2345 10 90 <=========================
# description: Activates/Deactivates all network interfaces configured to \
# start at boot time.
# probe: false
#
### BEGIN INIT INFO
# Provides: network
# Should-Start: harddrake irda resolvconf slmodemd
# Should-Stop: irda slmodemd
# Default-Start: 2 3 4 5 <========================
# Short-Description: Bring up/down networking
# Description: Activates/Deactivates all network interfaces configured to
# start at boot time.
# Should-Start: iptables ip6tables
### END INIT INFO
  Reply With Quote
9 18th May 10:15
eracc
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


On Sat, 10 May 2008 19:25:42 +0200

[...]

Giorgio, I would recommend a Linksys branded Cisco router instead of a D-Link
these days. I was once a D-Link user but after several D-Link router deaths
simply from them being used and NO Linksys router deaths (other than one from a
lightning strike hitting the WAN port over the copper patch cable) I prefer
Linksys. I am not sure what Linksys has available to you in Italy but you can
find out using their Italian pages:

http://preview.tinyurl.com/2oeype

I cannot read Italian so I'll let you take it from here.

Gene (e-mail: usenet0 \a\t eracc \d\o\t com)
--
Mandriva Linux release 2007.1 (Official) for i586
Got Rute? http://www.anrdoezrs.net/email-25465...sbn=0130333514
ERA Computers & Consulting - http://www.eracc.com/
Preloaded PCs - eComStation, Linux, FreeBSD, OpenServer & UnixWare
  Reply With Quote
10 18th May 10:15
david w. hodgins
External User
 
Posts: 1
Default 2008.1 - /etc/rc.local does not run at boot


What version of Mandriva are you using?

[root@hodgins ~]# cd /etc/rc.d
[root@hodgins rc.d]# grep -r rc.serial *
[root@hodgins rc.d]# grep -r rc.local *
rc2.d/S99local:# Provides: rc.local
rc2.d/S99local:echo "rc.local done"
rc3.d/S99local:# Provides: rc.local
rc3.d/S99local:echo "rc.local done"
rc4.d/S99local:# Provides: rc.local
rc4.d/S99local:echo "rc.local done"
rc5.d/S99local:# Provides: rc.local
rc5.d/S99local:echo "rc.local done"
rc.local:# Provides: rc.local
rc.local:echo "rc.local done"

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666