View previous topic :: View next topic |
Author |
Message |
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Thu Apr 29, 2004 12:47 am Post subject: How to stop system services |
|
|
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 |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
|
Back to top |
|
|
wdevauld n00b
Joined: 28 Apr 2004 Posts: 2
|
Posted: Thu Apr 29, 2004 12:53 am Post subject: |
|
|
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 |
|
|
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Thu Apr 29, 2004 1:04 am Post subject: |
|
|
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
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 |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
Posted: Thu Apr 29, 2004 1:06 am Post subject: |
|
|
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 |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Thu Apr 29, 2004 1:48 am Post subject: |
|
|
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 |
|
|
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Thu Apr 29, 2004 1:49 am Post subject: |
|
|
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 |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Thu Apr 29, 2004 6:56 pm Post subject: |
|
|
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 |
|
|
|