Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to stop system services
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Thu Apr 29, 2004 12:47 am    Post subject: How to stop system services Reply with quote

Alright.. so..my system is unaccessible. Gentoo is hanging at "Starting eth0", and my network connection is down. I can't hit control-Z, control-C, etc. to stop it. Any way to stop services or make them NOT start automatically (without using rc-update, as I don't have access to the system, I guess)
_________________
what up
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Thu Apr 29, 2004 12:52 am    Post subject: Reply with quote

Can you boot from the LiveCD, and chroot into your machine? You should be able to remove net.eth0 that way...
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
wdevauld
n00b
n00b


Joined: 28 Apr 2004
Posts: 2

PostPosted: Thu Apr 29, 2004 12:53 am    Post subject: Reply with quote

you can stop net0 from starting by removing it from all the runlevels, check with

rc-update show

and remove everything with net.eth0 in it, probably

rc-update del net.eth0 default

-I'm a n00b :)
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Thu Apr 29, 2004 1:04 am    Post subject: Reply with quote

ectospasm wrote:
Can you boot from the LiveCD, and chroot into your machine? You should be able to remove net.eth0 that way...


I thought about that, but I don't have a liveCD for more than a year and a half, and I don't have another computer with a burner. So yeah, that's sorta my last resort. If nothing else, I can get someone to burn it. But I'd like a quicker way if possible :lol:


wdevauld wrote:
you can stop net0 from starting by removing it from all the runlevels, check with)


Yeah, but the problem is that I can't get into it to do that :-)
_________________
what up


Last edited by shm on Thu Apr 29, 2004 1:06 am; edited 1 time in total
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Thu Apr 29, 2004 1:06 am    Post subject: Reply with quote

wdevauld wrote:
you can stop net0 from starting by removing it from all the runlevels, check with

rc-update show

and remove everything with net.eth0 in it, probably

rc-update del net.eth0 default

-I'm a n00b :)


This person cannot get to a shell in order to run rc-update:

shm wrote:
(without using rc-update, as I don't have access to the system, I guess)


Only way I can think of getting to a shell is by using the LiveCD...
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Thu Apr 29, 2004 1:07 am    Post subject: Reply with quote

Or, I just thought of something... If net.eth0 can't get a DHCP license (because the server is down, etc.), it takes quite a while for it to skip loading it. Maybe you're not waiting long enough?
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu Apr 29, 2004 1:48 am    Post subject: Reply with quote

Well, not sure if theis works with gentoo but with most distros you can append "single" or 1 to the boot command line and boot into single user mode. Of course if you are using lilo(as opposed to grub) and don't already have that setup as a menu entry then you're still stuck. If you have a floppy drive download tomsrtbt and boot with it.
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Thu Apr 29, 2004 1:49 am    Post subject: Reply with quote

ectospasm wrote:
Or, I just thought of something... If net.eth0 can't get a DHCP license (because the server is down, etc.), it takes quite a while for it to skip loading it. Maybe you're not waiting long enough?


Yup.. :-) .. I didn't wait long enough, and it did time out.. thanks for all your help, my comp is back running fine.
_________________
what up
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Thu Apr 29, 2004 3:27 am    Post subject: Reply with quote

Great. I'm glad that's all it was. (-:
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Thu Apr 29, 2004 6:56 pm    Post subject: Reply with quote

shm wrote:
Yup.. :-) .. I didn't wait long enough, and it did time out.. thanks for all your help, my comp is back running fine.

If you are annoyed with the timeout, you can change the amount of time given for dhcpcd to make a connection.

I have the following in /etc/conf.d/net:
Code:
iface_eth0="dhcp"
dhcpcd_eth0="-N -t 10"

"-t 10" specifies a 10 second timeout period. The default for dhcpcd is 60 seconds.
_________________
I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum