| View previous topic :: View next topic |
| Author |
Message |
vespaman Apprentice


Joined: 28 Aug 2002 Posts: 232 Location: Stockholm, Sweden
|
Posted: Sat Feb 09, 2013 8:30 am Post subject: sshd does not start if eth1 fails [SOLVED] |
|
|
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 |
|
 |
BoneKracker Veteran


Joined: 14 Mar 2006 Posts: 1488 Location: U.S.A.
|
Posted: Sun Feb 10, 2013 7:54 am Post subject: |
|
|
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. _________________ Oldthinkers unbellyfeel INGSOC.
-- Headline of a document on Winston Smith's terminal in his cubicle at the Ministry of Truth, seen briefly in the background in one scene of the movie rendition of Nineteen Eighty-Four. |
|
| Back to top |
|
 |
vespaman Apprentice


Joined: 28 Aug 2002 Posts: 232 Location: Stockholm, Sweden
|
Posted: Sun Feb 10, 2013 8:28 am Post subject: |
|
|
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 |
|
 |
BoneKracker Veteran


Joined: 14 Mar 2006 Posts: 1488 Location: U.S.A.
|
Posted: Sun Feb 10, 2013 9:08 am Post subject: |
|
|
That's a good file to study thoroughly. Many useful possibilities. _________________ Oldthinkers unbellyfeel INGSOC.
-- Headline of a document on Winston Smith's terminal in his cubicle at the Ministry of Truth, seen briefly in the background in one scene of the movie rendition of Nineteen Eighty-Four. |
|
| Back to top |
|
 |
|
|
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
|
|