Slight redesign so that secondary box only runs script manually when someone wants it to take over
parent
cf00fbedec
commit
e694728e99
@ -1,10 +1,17 @@
|
|||||||
|
FAILOVER=/home/nagios/bin/failover.sh
|
||||||
|
|
||||||
default: test
|
default: test
|
||||||
|
|
||||||
test:
|
test:
|
||||||
./failover.sh -P primary.localdomain -S secondary.localdomain
|
${FAILOVER} -P primary.localdomain -S secondary.localdomain
|
||||||
|
|
||||||
go:
|
go:
|
||||||
./failover.sh -P primary.localdomain -S secondary.localdomain -E
|
${FAILOVER} -P primary.localdomain -S secondary.localdomain -E
|
||||||
|
force:
|
||||||
|
${FAILOVER} -P primary.localdomain -S secondary.localdomain -E --force
|
||||||
|
|
||||||
|
copy-test:
|
||||||
|
rsync -avun /home/nagios/princeton/failover/ /home/nagios/bin/
|
||||||
copy:
|
copy:
|
||||||
rsync -avu /home/nagios/princeton/failover/ /home/nagios/bin/
|
rsync -avu /home/nagios/princeton/failover/ /home/nagios/bin/
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
/home/nagios/bin/failover.sh -P primary.localdomain -S secondary.localdomain -E --force
|
||||||
Loading…
Reference in New Issue