LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2004, 05:35 AM   #1
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Rep: Reputation: 15
Question rc.local - does not load during boot


Hi all,

Have a question / problem regarding the RC.LOCAL file. In the rc.local file I added aline which should start some software during boot-up. My rc.local looks like:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/sbin/modprobe my-module
/usr/sbin/dhcpd
/usr/sbin/my-software

The software "my-software" normally is started as root user (from CLI). However it seems that it is not loaed during my boot. Does anybody know how this can be realised so that the software is loaded no matter who actually logs in?

Thanks a lot!
Beuzekom
 
Old 01-26-2004, 05:42 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
strange...
any error messages ?
 
Old 01-26-2004, 05:58 AM   #3
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
No error messages at all ... can you place software in the rc.local file which normally must be started by the root user?
 
Old 01-27-2004, 01:11 AM   #4
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
If nobody knows how to solve the rc.local problem I will need to do some deep research myself :-) - Does one of you know how to trace what is actually executed during startup?

So I will need a way to so that I can see more info during bootup, of even that the user has to confirm each command?

Cheers.
 
Old 01-27-2004, 06:17 AM   #5
joeln
LQ Newbie
 
Registered: Dec 2003
Location: Northern Colorado
Distribution: slack 9.1 replacing mandrake 9.2
Posts: 23

Rep: Reputation: 15
The HOWTO "From Power up to Bash Prompt" discusses tracing at this stage. -Joel
 
Old 01-27-2004, 12:49 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
just one quick suggestion before you start digging:
make sure your rc.local has execute permissions
 
Old 01-29-2004, 04:28 AM   #7
Beuzekom
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: Redhat 9.0
Posts: 38

Original Poster
Rep: Reputation: 15
I guess this should be sufficient

-rwxr-xr-x 1 root root 284 Jan 26 14:02 rc.local

Will let you know if I succeeded
 
Old 03-19-2004, 04:54 PM   #8
Edzelf
LQ Newbie
 
Registered: Mar 2004
Distribution: RH 9.0
Posts: 1

Rep: Reputation: 0
Check if you got the rc.local file twice.
I found an extra one in /etc/rc.d and that was the one that was executed at boot-time.
By the way: the one in /etc did not have the execute-bit set after clean install, so I think this one is redundant...
 
Old 04-06-2004, 11:02 PM   #9
cyberbillp
LQ Newbie
 
Registered: Apr 2004
Location: Florida
Posts: 3

Rep: Reputation: 0
Red Hat 9 not running scripts from rc.local

I have this EXACT same problem.

I've been running a game server for the last year and a half under RH7.3. I recently installed new hardware, and formated th drive with RH 9. I copied my scripts over, and of course made sure they are executable. One of the things I do is run a script from rc.local.

But it will not run.

Logged in as root, I enter the exact same line as I have in the rc.local file, and it runs fine. I can even cut and paste it, and it runs. Some thing is fishy with rc.local in RH 9. I'd like to know if anyone has solved this. Or am I forgetting something?

Alternately, where else could I locate this command to make it run at boot time?

My command is:
sh /home/gserver/bootup.sh

bootup.sh runs screen which runs supervise which keeps the game server running.
 
Old 04-09-2004, 06:58 PM   #10
cyberbillp
LQ Newbie
 
Registered: Apr 2004
Location: Florida
Posts: 3

Rep: Reputation: 0
no one?

No suggestions?

*bump*
 
Old 04-24-2004, 05:51 PM   #11
coltie
LQ Newbie
 
Registered: Apr 2004
Location: Switzerland
Distribution: fedora core 1.0 (ccrma)
Posts: 4

Rep: Reputation: 0
Hu, bonjour.

You're not alone...

I got the same problem, exept that the program doesn't work even when I'm log in as root...

Well hopefully someone as an answer...
 
Old 04-24-2004, 08:08 PM   #12
cyberbillp
LQ Newbie
 
Registered: Apr 2004
Location: Florida
Posts: 3

Rep: Reputation: 0
rc.local

I figured this out.

In Red Hat 7.3 apparently root had it's path set prior to running rc.local. But in RH9, I guess not. I put full path names in rc.local and the script it was trying to run, and now it works.

Hope this helps.
 
Old 04-27-2004, 08:06 AM   #13
coltie
LQ Newbie
 
Registered: Apr 2004
Location: Switzerland
Distribution: fedora core 1.0 (ccrma)
Posts: 4

Rep: Reputation: 0
Well, what did you mean by "full path name"? I tried for example:

/usr/bin/gkrellm

in my /etc/rc.d/rc.local (at the end of the file)

but it doesn't work! Even when i'm logged as root....

Well...
 
Old 04-28-2004, 11:25 AM   #14
coltie
LQ Newbie
 
Registered: Apr 2004
Location: Switzerland
Distribution: fedora core 1.0 (ccrma)
Posts: 4

Rep: Reputation: 0
problem solved
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - Newbie 15 10-21-2005 10:29 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 07:08 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 07:07 AM
cannot load local code page transcoder arshipel Linux - Software 0 03-16-2005 09:43 AM
boot hangs after running /etc/init.d/boot.local eddieb Linux - Newbie 2 07-18-2004 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration