Browse Source

keepalived_check

develop
Emmanuel Garette 4 months ago
parent
commit
5d31461697
2 changed files with 8 additions and 1 deletions
  1. 7
    0
      scripts/keepalived_check
  2. 1
    1
      tmpl/keepalived.conf

+ 7
- 0
scripts/keepalived_check View File

@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+SERVICE=$1
4
+
5
+[ -f /run/lock/keepalived_$SERVICE.backup ] && exit 0
6
+
7
+/bin/systemctl status $SERVICE.service

+ 1
- 1
tmpl/keepalived.conf View File

@@ -17,7 +17,7 @@ global_defs {
17 17
 
18 18
 %for %%chk in %%keepVRRPInstance
19 19
 vrrp_script %%chk.kCheckService {
20
-  script           "%%chk.kCheckService"
20
+  script           "/usr/share/eole/sbin/keepalived_check %%chk.kCheckService"
21 21
   interval 	   %%chk.kCheckInterval   # check every xxx seconds
22 22
   fall 		   %%chk.kCheckFall       # require xxx failures for KO
23 23
   rise 		   %%chk.kCheckRise       # require xxx successes for OK

Loading…
Cancel
Save