On Tue, Jun 24, 2008 at 03:07:56PM +0200, Annette J?kel wrote:
> Hello,
> Within my heartbeat (2.0.8) configuration I defined a resource for setting
> up an IP Alias onto one of my interfaces. But I have a problem: sshd listens
> on that address. So there are two cases, I have to restart sshd:
> 1) at boot time when starting up heartbeat, because sshd comes up before
> heartbeat (and should be come up before)
> 2) at time the node running the IP Alias failes and another node in the ha
> cluster takeover the IP Alias.

If you've told sshd to bind to '0.0.0.0'. then it will look for changing
interfaces/addresses on it's own.  No need to manage sshd separately.

> So I want to restart sshd within heartbeat. What is the best way to do that?
> Within a self written resource script?

That works just dandy, out of the box, under Red Hat Linux (tested with 4
and 5).

> Annette
-- 
Brian Reichert                          <[EMAIL PROTECTED]>
55 Crystal Ave. #286                    Daytime number: (603) 434-6842
Derry NH 03038-1725 USA                 BSD admin/developer at large    
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to