LinuxQuestions.org
Register a domain and help support LQ
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 07-27-2011, 02:55 AM   #1
Zycus
LQ Newbie
 
Registered: Jul 2011
Posts: 29

Rep: Reputation: Disabled
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.

Last edited by Zycus; 07-27-2011 at 06:14 AM.
 
Old 07-27-2011, 03:13 AM   #2
nallanisai
LQ Newbie
 
Registered: Dec 2010
Location: Bangalore
Distribution: Red Hat Linux
Posts: 28

Rep: Reputation: 0
Hi.....provide the few more details like...
1)Which OS are you using.
2)default run level you want to boot.
 
Old 07-27-2011, 03:25 AM   #3
digsecurity
Member
 
Registered: Apr 2010
Posts: 54

Rep: Reputation: 18
Quote:
Originally Posted by Zycus View Post
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.
 
Old 07-27-2011, 03:37 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,424

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
Might even help if you told us what the script is supposed to do?
Is the script throwing any errors?
 
Old 07-27-2011, 04:26 AM   #5
Zycus
LQ Newbie
 
Registered: Jul 2011
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-27-2011, 11:45 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,424

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
You mean as a startup script on Centos 5.6 it works without error? (error also being that it hangs)
 
Old 07-28-2011, 04:28 AM   #7
Zycus
LQ Newbie
 
Registered: Jul 2011
Posts: 29

Original Poster
Rep: Reputation: Disabled
Script is working fine in centos 5.6 without hang.
it hang in only centos 6.
 
Old 07-28-2011, 12:44 PM   #8
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,424

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


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
Boot script p0k3r Slackware 3 11-04-2006 02:32 PM
boot script? tzonga1 Fedora 1 11-13-2004 05:36 PM
Boot Script justaguynsrq Linux - Newbie 5 03-18-2004 12:05 PM
Stop boot script at boot time!! kmiles2 Linux - Newbie 1 02-23-2004 11:04 PM
Boot Script jhayes Linux - Software 16 07-18-2003 10:47 AM


All times are GMT -5. The time now is 12:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration