diff --git a/config/freebsd/newsyslog/waagent.conf b/config/freebsd/newsyslog/waagent.conf new file mode 100644 index 0000000000..25be9484c5 --- /dev/null +++ b/config/freebsd/newsyslog/waagent.conf @@ -0,0 +1 @@ +/var/log/waagent.log 644 7 * @T00 JN diff --git a/setup.py b/setup.py index 372807fa30..fa517ead0d 100755 --- a/setup.py +++ b/setup.py @@ -151,6 +151,8 @@ def get_data_files(name, version, fullname): elif name == 'freebsd': set_bin_files(data_files, dest="/usr/local/sbin") set_conf_files(data_files, src=["config/freebsd/waagent.conf"]) + set_logrotate_files(data_files, dest="/etc/newsyslog.conf.d", + src=["config/freebsd/newsyslog/waagent.conf"]) set_freebsd_rc_files(data_files) elif name == 'openbsd': set_bin_files(data_files, dest="/usr/local/sbin")