tripleo-image-elements/elements/keepalived/install.d/76-keepalived
Gregory Haynes dad3c0ccf1 Migrate to package-installs scripts
Migrating install-packages commands to package-installs-* scripts where
possible.

This patch is broken up into multiple parts to minimize impact and
review overhead.

Change-Id: Idd1be32149e7238d53d04a34170c5029dda83f1f
2014-11-05 01:38:05 -08:00

13 lines
346 B
Bash
Executable File

#!/bin/bash
set -eux
[ -d /var/log/keepalived ] || install -d -o root -g root -m 0775 /var/log/keepalived
register-state-path --leave-symlink /var/log/keepalived
cat > /etc/rsyslog.d/keepalived.conf<<'EOF'
#Send keepalived messages to a dedicated logfile
if $programname startswith 'Keepalived' then /var/log/keepalived/keepalived.log
& ~
EOF