Skip to content

Commit 19e5c07

Browse files
committed
s/xe-syslog-reconfigure: Keep disclaimer in remote.conf
The behaviour is same, except that the file will remain (with empty rules) even if the forwarding log has been disabled (and then prevent the disclaimer loss). Wording slightly modified to reduce the risk of concurrent management of this file, if the file is still edited by other mean, it will be done knowingly (that x-s-r may override any change soon or later). For the record remote.conf was introduced in: 468eb75 . I am assuming that the presence of file is not checked elsewhere that in xen-api (currently only s/x-s-r is referencing this file). Signed-off-by: Philippe Coval <[email protected]>
1 parent b029809 commit 19e5c07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/xe-syslog-reconfigure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ do
1515
done
1616

1717

18+
echo "# /etc/rsyslog.d/remote.conf is managed by xe-syslog-reconfigure (do not edit)" > /etc/rsyslog.d/remote.conf
1819
if [ $remote -eq 1 ]; then
19-
echo "# /etc/rsyslog.d/remote.conf is auto-generated by xe-syslog-reconfigure" > /etc/rsyslog.d/remote.conf
2020
echo "*.* @$host" >> /etc/rsyslog.d/remote.conf
21-
else
22-
rm -f /etc/rsyslog.d/remote.conf
2321
fi
2422

2523
systemctl restart rsyslog

0 commit comments

Comments
 (0)