LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-24-2003, 03:43 PM   #1
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Rep: Reputation: 15
Question how to interrupt service at startup


hi

sometimes my LAN connection is disconnected when I want to boot linux, so the booting stops trying to start interface eth0 (my network device) until I get up and get the stupid cable. Is there a possibility interrupt the eth0 while it 'hangs' and go on without it whenever I dont need it?

(and if yes: how to start eth0 later?)

stef
 
Old 04-24-2003, 03:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
You can run:
chkconfig network off

To disable the network from starting at boot and then run (as root):
service network start

To start networking once you have booted.
 
Old 04-24-2003, 05:02 PM   #3
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
hmmm, not sure whether this would work with your setup but i know that when my ISP's dhcp server is down (happens occaisionally) and the computer sits there trying to talk to it I can stop it by doing ctrl-c. This works with most linux apps but not sure whether it would with a static IP address allocation. Usually with a static IP it would just complain a bit and then carry on.

Alex

P.S. if it is dhcp then i can help otherwise, this post is useless
 
Old 04-25-2003, 02:57 AM   #4
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by webtoe
P.S. if it is dhcp then i can help otherwise, this post is useless
It is dhcp!

but still, I tried Ctr-c. without success.
 
Old 04-25-2003, 09:41 AM   #5
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Try jabbing it a few times, or try the ctrl-d. This has worked for me before.

To start dhcp later you need to use something like the following as root (and with the cable in ;-) )
Code:
/sbin/dhcpcd -h user_name_for_isp
There may be some problems here however.
1.) I use Slackware which uses dhcpcd and I'm not sure whether Red Hat uses this program or another dhcp client.
2.) Cable modem providers are different in the way they use dhcp. Some use different settings that dhcp will have to be told about and may need the hostname or not. If in doubt, poke around in the startup scripts for the one that attempts the dhcp lookup when you switch the box on. There should be the various commands needed there. If dhcp is in its own script with nothing else but the dhcp setup in it (which is very possible for Red Hat) you may just be able to run this script.

Or you could have a look at the Cable-providers How-to on www.tldp.org (though last time I checked they still hadn't altered the entry for ntlworld (which I found was wrong and told them bout).

HTH

Alex

Last edited by webtoe; 04-25-2003 at 11:04 AM.
 
Old 04-26-2003, 03:41 PM   #6
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
Thumbs down

Quote:
Try jabbing it a few times, or try the ctrl-d. This has worked for me before.
i could slam my keyboard with no result.

whenever I boot without the LAN-cable, booting pauses for 2 minutes at:
"Interface eth0 hochfahren..."
followed by a ping result Summary (3 packages sent, 0 received, 3 errors (which I could have told 2 minutes earlier ))

I dont have cable, I have ADSL, if that makes any difference in anyones next advice
 
Old 04-26-2003, 05:29 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
david_ross's solution looks alright to
me ... if you need networking later on
you can always su -c dhcpd (or whatever
comes with your distro) ...

Or -since it's "little red ridinghood" - you
can use the Press I option and just say no
to networking ;)

Cheers,
Tink
 
Old 04-27-2003, 10:05 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
I forgot about this thread. You could also modify your network startup script to prompt you like:
"Do you want network support [Y/N]: "

This would give you time to either plug in the cable and say yes or just select no and start it later.
 
Old 05-03-2003, 11:24 AM   #9
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
You could also modify your network startup script to prompt you like:
"Do you want network support [Y/N]: "

In what file would you do it?
/etc/init.d/network ?
 
Old 05-03-2003, 11:35 AM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
I think so. Depending on the result of the question you can either "ifup eth0" or continue.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup Programs as a Service? keithieopia Linux - Newbie 4 02-26-2005 10:44 PM
Network service startup imurch01 Linux - Networking 6 01-16-2005 11:37 PM
startup the service automatically ashley75 Linux - General 4 09-24-2003 03:14 AM
Running a service at startup correro Linux - General 14 02-18-2003 08:00 PM
Stopping a startup service MrJoshua Linux - General 1 05-15-2002 03:03 PM


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