KEEPALIVED_COMMAND_LINE_ARGUMENTS

This commit is contained in:
Bertrand Gouny 2016-01-20 09:48:53 +01:00
parent 0fc4b060e3
commit c11e41c673
3 changed files with 5 additions and 1 deletions

View File

@ -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_COMMAND_LINE_ARGUMENTS** Keepalived command line arguments; Defaults to `--log-detail --dump-conf`
### Set environment variables at run time :
Environment variable can be set directly by adding the -e argument in the command line, for example :

View File

@ -14,3 +14,5 @@ KEEPALIVED_VIRTUAL_IPS:
- 192.168.1.232
KEEPALIVED_NOTIFY: /container/service/keepalived/assets/notify.sh
KEEPALIVED_COMMAND_LINE_ARGUMENTS: --log-detail --dump-conf

View File

@ -4,4 +4,4 @@
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper
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}