LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rc.local - does not load during boot (https://www.linuxquestions.org/questions/linux-newbie-8/rc-local-does-not-load-during-boot-138743/)

Beuzekom 01-26-2004 05:35 AM

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

qwijibow 01-26-2004 05:42 AM

strange...
any error messages ?

Beuzekom 01-26-2004 05:58 AM

No error messages at all ... can you place software in the rc.local file which normally must be started by the root user?

Beuzekom 01-27-2004 01:11 AM

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.

joeln 01-27-2004 06:17 AM

The HOWTO "From Power up to Bash Prompt" discusses tracing at this stage. -Joel

Berhanie 01-27-2004 12:49 PM

just one quick suggestion before you start digging:
make sure your rc.local has execute permissions

Beuzekom 01-29-2004 04:28 AM

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 :mad:

Edzelf 03-19-2004 04:54 PM

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...

cyberbillp 04-06-2004 11:02 PM

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.

cyberbillp 04-09-2004 06:58 PM

no one?
 
No suggestions?

*bump*

coltie 04-24-2004 05:51 PM

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...

cyberbillp 04-24-2004 08:08 PM

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.

coltie 04-27-2004 08:06 AM

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...

coltie 04-28-2004 11:25 AM

problem solved:)


All times are GMT -5. The time now is 02:58 AM.