Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd does not start if eth1 fails [SOLVED]
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
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 346
Location: Stockholm, Sweden

PostPosted: Sat Feb 09, 2013 8:30 am    Post subject: sshd does not start if eth1 fails [SOLVED] Reply with quote

I am building a new server, which will also act as router/gateway/firewall in the end.

eth0 is static, local, eth1 is dhcp client WAN.

As this box is headless, I depend on sshd to be operational, however, with the default settings/scripts, sshd refuses to start if eth1 isn't plugged.

In order to get sshd up, I removed the depends on net statement in /etc/init.d/sshd but there has to be a better way of doing this, right?

I have searched for any kind of config that allows this, but couldn't find any... :?


Last edited by vespaman on Sun Feb 10, 2013 9:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sun Feb 10, 2013 7:54 am    Post subject: Reply with quote

I think you can do 'needs net.eth0'.

If not, you can disable strict net dependencies in /etc/rc.conf. Things depending on net will then run if only one interface is up. Consider first how that will impact other things, though.

There are some other settings in there that provide alternatives.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 346
Location: Stockholm, Sweden

PostPosted: Sun Feb 10, 2013 8:28 am    Post subject: Reply with quote

Thanks!
The strict net dependencies setting in rc.conf seams to do what I want, will keep an eye on how this affects the other stuff as I go along installing them.

(I did not try the needs net.eth0 option, becuase I know I will probably forget about it in a few months and then, when upgrading, loose it)
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sun Feb 10, 2013 9:08 am    Post subject: Reply with quote

That's a good file to study thoroughly. Many useful possibilities.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
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