LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Boot script (https://www.linuxquestions.org/questions/linux-newbie-8/boot-script-893989/)

Zycus 07-27-2011 01:55 AM

Boot script
 
I want to run script before login.
i stored my script file in /etc/rc3.d.
still its not work.
Whenever i reboot it just hang up at theme page and it does not allowd me to log in.

nallanisai 07-27-2011 02:13 AM

Hi.....provide the few more details like...
1)Which OS are you using.
2)default run level you want to boot.

digsecurity 07-27-2011 02:25 AM

Quote:

Originally Posted by Zycus (Post 4426346)
I want to run script before login.
i stored my script file in /etc/rd3.d.
still its not work.
Whenever i reboot it just hang up at theme page and it does not allowd me to log in.

Simply make use of the /etc/rc.d/rc.local file. This script file is run once, before all other scripts have run but before the login prompt appears.

grail 07-27-2011 02:37 AM

Might even help if you told us what the script is supposed to do?
Is the script throwing any errors?

Zycus 07-27-2011 03:26 AM

I am using centos 6.
My script is for just showing me ip address and option with dhcp setting.
It work fine without any error.
It work in centos 5.6.

grail 07-27-2011 10:45 AM

You mean as a startup script on Centos 5.6 it works without error? (error also being that it hangs)

Zycus 07-28-2011 03:28 AM

Script is working fine in centos 5.6 without hang.
it hang in only centos 6.

grail 07-28-2011 11:44 AM

Maybe you are using sh as the interpreter and on the new version it is aliased to a different shell and so performing differently?


All times are GMT -5. The time now is 12:34 PM.