public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Prevent sshd from stopping?
@ 2008-10-15 23:24 Grant
  2008-10-15 23:43 ` David Wei
  2008-10-16  7:02 ` Sebastian Günther
  0 siblings, 2 replies; 8+ messages in thread
From: Grant @ 2008-10-15 23:24 UTC (permalink / raw
  To: Gentoo mailing list

One of my Gentoo systems is located in a separate building from the
router.  The wireless connection always seems to be strong, but
periodically the services that depend on net.ath0 stop because it
loses the connection.  Issuing 'rc' always brings them back.  Is there
any way to prevent this from happening?  I'm mainly concerned about
sshd.

- Grant



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-15 23:24 [gentoo-user] Prevent sshd from stopping? Grant
@ 2008-10-15 23:43 ` David Wei
  2008-10-16  7:02 ` Sebastian Günther
  1 sibling, 0 replies; 8+ messages in thread
From: David Wei @ 2008-10-15 23:43 UTC (permalink / raw
  To: gentoo-user

I think one passive way is to use "screen" ,and detach the "screen" when you donot communicate with it. It can at least keep you program running in the background.
This will not help if you need to have continual communication with your console.

On my laptop,i use ndiswrapper as the wireless module,the wireless lancard so named wlan0. It's never stopped or restarted no mater how weak the signal was.

On Wed, 15 Oct 2008 16:24:42 -0700
Grant <emailgrant@gmail.com> wrote:

> One of my Gentoo systems is located in a separate building from the
> router.  The wireless connection always seems to be strong, but
> periodically the services that depend on net.ath0 stop because it
> loses the connection.  Issuing 'rc' always brings them back.  Is there
> any way to prevent this from happening?  I'm mainly concerned about
> sshd.
> 
> - Grant
> 


-------------------------------
魏亮 David Wei

您可以通过下面的方式和我联系:
MSN: inadavid@hotmail.com
Gtalk: inadavid@gmail.com
Email: davidwei@newbread.tj.cn



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-15 23:24 [gentoo-user] Prevent sshd from stopping? Grant
  2008-10-15 23:43 ` David Wei
@ 2008-10-16  7:02 ` Sebastian Günther
  2008-10-16 14:49   ` Grant
  2008-10-17 18:15   ` Grant
  1 sibling, 2 replies; 8+ messages in thread
From: Sebastian Günther @ 2008-10-16  7:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

* Grant (emailgrant@gmail.com) [16.10.08 01:26]:
> One of my Gentoo systems is located in a separate building from the
> router.  The wireless connection always seems to be strong, but
> periodically the services that depend on net.ath0 stop because it
> loses the connection.  Issuing 'rc' always brings them back.  Is there
> any way to prevent this from happening?  I'm mainly concerned about
> sshd.
> 
> - Grant
> 

Then let them depend on net.lo.

HTH
Sebastian

-- 
 " Religion ist das Opium des Volkes. "      Karl Marx

 SEB@STI@N GÜNTHER         mailto:samson@guenther-roetgen.de

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-16  7:02 ` Sebastian Günther
@ 2008-10-16 14:49   ` Grant
  2008-10-16 14:57     ` Alan McKinnon
  2008-10-17 18:15   ` Grant
  1 sibling, 1 reply; 8+ messages in thread
From: Grant @ 2008-10-16 14:49 UTC (permalink / raw
  To: gentoo-user

>> One of my Gentoo systems is located in a separate building from the
>> router.  The wireless connection always seems to be strong, but
>> periodically the services that depend on net.ath0 stop because it
>> loses the connection.  Issuing 'rc' always brings them back.  Is there
>> any way to prevent this from happening?  I'm mainly concerned about
>> sshd.
>>
>> - Grant
>>
>
> Then let them depend on net.lo.

Sounds good, do I need to edit /etc/init.d/sshd to do that, or is
there a better way?

- Grabt



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-16 14:49   ` Grant
@ 2008-10-16 14:57     ` Alan McKinnon
  0 siblings, 0 replies; 8+ messages in thread
From: Alan McKinnon @ 2008-10-16 14:57 UTC (permalink / raw
  To: gentoo-user

On Thursday 16 October 2008 16:49:06 Grant wrote:
> >> One of my Gentoo systems is located in a separate building from the
> >> router.  The wireless connection always seems to be strong, but
> >> periodically the services that depend on net.ath0 stop because it
> >> loses the connection.  Issuing 'rc' always brings them back.  Is there
> >> any way to prevent this from happening?  I'm mainly concerned about
> >> sshd.
> >>
> >> - Grant
> >
> > Then let them depend on net.lo.
>
> Sounds good, do I need to edit /etc/init.d/sshd to do that

yes







-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-16  7:02 ` Sebastian Günther
  2008-10-16 14:49   ` Grant
@ 2008-10-17 18:15   ` Grant
  2008-10-18  4:40     ` Neil Bothwick
  1 sibling, 1 reply; 8+ messages in thread
From: Grant @ 2008-10-17 18:15 UTC (permalink / raw
  To: gentoo-user

>> One of my Gentoo systems is located in a separate building from the
>> router.  The wireless connection always seems to be strong, but
>> periodically the services that depend on net.ath0 stop because it
>> loses the connection.  Issuing 'rc' always brings them back.  Is there
>> any way to prevent this from happening?  I'm mainly concerned about
>> sshd.
>>
>> - Grant
>>
>
> Then let them depend on net.lo.

What about sticking 'rc' in the crontab?  No good?

- Grant



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-17 18:15   ` Grant
@ 2008-10-18  4:40     ` Neil Bothwick
  2008-10-20 20:15       ` Grant
  0 siblings, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2008-10-18  4:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

On Fri, 17 Oct 2008 11:15:19 -0700, Grant wrote:

> >> One of my Gentoo systems is located in a separate building from the
> >> router.  The wireless connection always seems to be strong, but
> >> periodically the services that depend on net.ath0 stop because it
> >> loses the connection.  Issuing 'rc' always brings them back.  Is
> >> there any way to prevent this from happening?  I'm mainly concerned
> >> about sshd.

> > Then let them depend on net.lo.  
> 
> What about sticking 'rc' in the crontab?  No good?

What's wrong with setting RC_STRICT (?) appropriately, it's what it is
for. With the right setting, net.lo will satisfy sshd.


-- 
Neil Bothwick

If you are a fatalist, what can you do about it?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Prevent sshd from stopping?
  2008-10-18  4:40     ` Neil Bothwick
@ 2008-10-20 20:15       ` Grant
  0 siblings, 0 replies; 8+ messages in thread
From: Grant @ 2008-10-20 20:15 UTC (permalink / raw
  To: gentoo-user

>> >> One of my Gentoo systems is located in a separate building from the
>> >> router.  The wireless connection always seems to be strong, but
>> >> periodically the services that depend on net.ath0 stop because it
>> >> loses the connection.  Issuing 'rc' always brings them back.  Is
>> >> there any way to prevent this from happening?  I'm mainly concerned
>> >> about sshd.
>
>> > Then let them depend on net.lo.
>>
>> What about sticking 'rc' in the crontab?  No good?
>
> What's wrong with setting RC_STRICT (?) appropriately, it's what it is
> for. With the right setting, net.lo will satisfy sshd.

Thank you, I do think RC_NET_STRICT_CHECKING is what I'm after.

- Grant



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-20 20:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 23:24 [gentoo-user] Prevent sshd from stopping? Grant
2008-10-15 23:43 ` David Wei
2008-10-16  7:02 ` Sebastian Günther
2008-10-16 14:49   ` Grant
2008-10-16 14:57     ` Alan McKinnon
2008-10-17 18:15   ` Grant
2008-10-18  4:40     ` Neil Bothwick
2008-10-20 20:15       ` Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox