KEEPALIVED_COMMAND_LINE_ARGUMENTS
This commit is contained in:
parent
0fc4b060e3
commit
c11e41c673
|
@ -84,6 +84,8 @@ See how to [set your own environment variables](#set-your-own-environment-variab
|
||||||
|
|
||||||
- **KEEPALIVED_NOTIFY** Script to execute when node state change. Defaults to `/container/service/keepalived/assets/notify.sh`
|
- **KEEPALIVED_NOTIFY** Script to execute when node state change. Defaults to `/container/service/keepalived/assets/notify.sh`
|
||||||
|
|
||||||
|
- **KEEPALIVED_COMMAND_LINE_ARGUMENTS** Keepalived command line arguments; Defaults to `--log-detail --dump-conf`
|
||||||
|
|
||||||
### Set environment variables at run time :
|
### Set environment variables at run time :
|
||||||
|
|
||||||
Environment variable can be set directly by adding the -e argument in the command line, for example :
|
Environment variable can be set directly by adding the -e argument in the command line, for example :
|
||||||
|
|
|
@ -14,3 +14,5 @@ KEEPALIVED_VIRTUAL_IPS:
|
||||||
- 192.168.1.232
|
- 192.168.1.232
|
||||||
|
|
||||||
KEEPALIVED_NOTIFY: /container/service/keepalived/assets/notify.sh
|
KEEPALIVED_NOTIFY: /container/service/keepalived/assets/notify.sh
|
||||||
|
|
||||||
|
KEEPALIVED_COMMAND_LINE_ARGUMENTS: --log-detail --dump-conf
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper
|
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper
|
||||||
log-helper level eq trace && set -x
|
log-helper level eq trace && set -x
|
||||||
|
|
||||||
exec /usr/local/sbin/keepalived -f /etc/keepalived/keepalived.conf --dont-fork --log-console -D -d
|
exec /usr/local/sbin/keepalived -f /etc/keepalived/keepalived.conf --dont-fork --log-console ${KEEPALIVED_COMMAND_LINE_ARGUMENTS}
|
||||||
|
|
Loading…
Reference in New Issue