View previous topic :: View next topic |
Author |
Message |
whschwartz Tux's lil' helper
Joined: 05 Mar 2004 Posts: 95 Location: Minnesotan living in Colorado
|
Posted: Sat Nov 20, 2004 12:04 am Post subject: init script question |
|
|
I have a system with multiple interfaces and when I drop one it shuts down services for all interfaces.
Code: |
gentoo init.d # ./net.eth1 stop
* Unmounting network filesystems ... [ ok ]
* Stopping sshd ... [ ok ]
* Stopping Cisco VPN Client ... [ ok ]
* Stopping xinetd ... [ ok ]
* Stopping eth1
* Bringing down eth1
* Releasing DHCP lease for eth1 ... [ ok ]
* Shutting down eth1 ... [ ok ]
|
Same thing with bringing up the interface, if I want to drop sshd for some reason, then bring up an interface it starts sshd too.
Where are the depends located? |
|
Back to top |
|
|
SerfurJ l33t
Joined: 10 Apr 2004 Posts: 824 Location: Texas
|
Posted: Sat Nov 20, 2004 3:02 am Post subject: |
|
|
init scripts can have dependencies. type "/etc/init.d/sshd" with no options and read about them there. |
|
Back to top |
|
|
whschwartz Tux's lil' helper
Joined: 05 Mar 2004 Posts: 95 Location: Minnesotan living in Colorado
|
Posted: Sun Nov 21, 2004 6:18 pm Post subject: |
|
|
I"m trying to figure out this depend thing. I see that the scripts in question "need net" but where can I list whats in net?
I''m trying to setup my system so the interfaces aren't connected to any other scripts. Problem is when I drop one of my 2 interfaces it shuts down a bunch of stuff or when I fire up some service like vpnclient it tries to start interfaces that aren't connected. |
|
Back to top |
|
|
|