docker-keepalived/image/service/keepalived/process.sh

16 lines
498 B
Bash
Raw Normal View History

2016-01-17 11:12:04 +00:00
#!/bin/bash -e
# set -x (bash debug) if log level is trace
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper
log-helper level eq trace && set -x
2017-04-02 14:03:27 +00:00
echo -n "Waiting config file /usr/local/etc/keepalived/keepalived.conf"
while [ ! -e "/usr/local/etc/keepalived/keepalived.conf" ]
do
echo -n "."
2017-04-02 17:53:16 +00:00
sleep 0.1
2017-04-02 14:03:27 +00:00
done
echo "ok"
2017-04-02 12:25:09 +00:00
exec /usr/local/sbin/keepalived -f /usr/local/etc/keepalived/keepalived.conf --dont-fork --log-console ${KEEPALIVED_COMMAND_LINE_ARGUMENTS}