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.

So I want to restart sshd within heartbeat. What is the best way to do that?
Within a self written resource script? Or is there the possibility to use
lsb script sshd with parameter "restart"? Or is there another possibility to
restart the sshd - maybe directly within resource of type Ipaddr from ocf
class I use to define the IP Alias?
I didnt found a hint in docs or archives.
Annette
I

If you need sshd as a cluster service, I'd strongly recommend to make that a second sshd instance on your machines in addition to the "normale" sshd.

You don't want to start sshd outside of heartbeat _and_ manage it with heartbeat. That will likely cause problems.

You could try to get sshd going with my "anything" RA (which can be found on this list from a couple days back).

Regards
Dominik
_______________________________________________
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