Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init script question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
whschwartz
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2004
Posts: 95
Location: Minnesotan living in Colorado

PostPosted: Sat Nov 20, 2004 12:04 am    Post subject: init script question Reply with quote

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
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Sat Nov 20, 2004 3:02 am    Post subject: Reply with quote

init scripts can have dependencies. type "/etc/init.d/sshd" with no options and read about them there.
Back to top
View user's profile Send private message
whschwartz
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2004
Posts: 95
Location: Minnesotan living in Colorado

PostPosted: Sun Nov 21, 2004 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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