LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2009, 03:59 PM   #1
casolorz
LQ Newbie
 
Registered: Feb 2009
Posts: 11

Rep: Reputation: 0
init scripts timeout


Is there a way to make init scripts have a timeout? I have a problem that sometimes some init script will hang on reboot which prevents the system from completing the reboot.
Thanks,

--Carlos
 
Old 02-03-2009, 10:33 AM   #2
amachina
LQ Newbie
 
Registered: Aug 2006
Location: VA
Distribution: Fedora, Red Hat
Posts: 9

Rep: Reputation: 1
Could you please provide more info? Is this your own script that you installed in /etc/init.d or is it a system script that ships with the distribution? If your own, have you analyzed why the script hangs (what is it waiting for?).

In response to your original question, I'm not sure if there is a way to force a timeout, which is why I'm suggesting the steps above.
 
Old 02-03-2009, 11:57 AM   #3
casolorz
LQ Newbie
 
Registered: Feb 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by amachina View Post
Could you please provide more info? Is this your own script that you installed in /etc/init.d or is it a system script that ships with the distribution? If your own, have you analyzed why the script hangs (what is it waiting for?).

In response to your original question, I'm not sure if there is a way to force a timeout, which is why I'm suggesting the steps above.
Sorry I guess I should have given a bit more info.

First, we are using Gentoo. We've added our own timeouts to any piece of code of ours which could hang. Pretty much the only thing we know hangs sometimes its our network bridge, whenever the system is shutting down it stops at "stopping net.br0" and it won't move from there. This only happens every so often, probably less than 5% of the time however our systems are all remote and we can't really have them hanging on reboots when we aren't there to manually fix them.

We actually think we have a fix for the net.br0 hanging but we are assuming thats the only piece of the shutdown cycle that hangs. If there were other pieces hanging it would be very helpful if we could just have a global timeout for all the init scripts. Is there such a thing?

Thanks,

--Carlos
 
Old 02-03-2009, 01:16 PM   #4
amachina
LQ Newbie
 
Registered: Aug 2006
Location: VA
Distribution: Fedora, Red Hat
Posts: 9

Rep: Reputation: 1
I'm not sure if this will help, but it sound like a good description of your problem:

http://bugs.gentoo.org/show_bug.cgi?id=157498
 
Old 02-03-2009, 02:03 PM   #5
casolorz
LQ Newbie
 
Registered: Feb 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by amachina View Post
I'm not sure if this will help, but it sound like a good description of your problem:

http://bugs.gentoo.org/show_bug.cgi?id=157498
Wow that really sounds like it. Thanks for the good find. I'm testing right now to see if I have the same problem by restarting net.br0 on a loop.

That still leaves us wanting to timeout all init scripts in case other are failing to stop and we just don't know about it but we may wait until we fix the net.br0 and are certain others are a problem.

Thanks,

--Carlos
 
  


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
timeout accessing xp share from linux scripts? babag Linux - Networking 2 09-24-2008 07:47 PM
Init Scripts brazilian_user Linux - General 3 12-05-2006 09:51 AM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-07-2006 12:10 AM
Have you ever got the 'init: timeout while...'? lucky_dev36 Linux - Software 0 09-04-2005 03:16 AM
Scripts in /etc/rc.d/init.d correro Linux - General 1 03-13-2003 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 AM.

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