Skip to content

Commit

Permalink
fix path to bash 'script' (#13)
Browse files Browse the repository at this point in the history
in order to run svc_check the path to bash must be provided
otherwise we see next error message in service log:

May 03 08:31:41 srv3 Keepalived_vrrp[614395]: Script bash cannot be accessed - No such file or directory
May 03 08:31:41 srv3 Keepalived_vrrp[614395]: Disabling track script chk_svc_port since not found/accessible

with provided path it's run successfully even with WARNING message about user:
May 03 12:50:48 srv3 Keepalived_vrrp[1861909]: WARNING - default user 'keepalived_script' for script execution does not exist - please create.
  • Loading branch information
Andrey-mp authored and kwmonroe committed May 25, 2021
1 parent 23e31f4 commit 479e854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/keepalived.conf
@@ -1,6 +1,6 @@
vrrp_script chk_svc_port {
# returns 1 if connection is refused
script "bash -c '</dev/tcp/127.0.0.1/{{ service_port }}'"
script "/bin/bash -c '</dev/tcp/127.0.0.1/{{ service_port }}'"
# check every 2 seconds
interval {{ healthcheck_interval }}
# make sure master priority drops below backup priority on failure
Expand Down

0 comments on commit 479e854

Please sign in to comment.