dad3c0ccf1
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
13 lines
346 B
Bash
Executable File
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
|