From f697fc1e3beed9a54c14f53d3b047103aa01cc2e Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Tue, 8 Sep 2015 18:40:10 +0800 Subject: [PATCH] Add customize rsyslog configuration files and logrotate configuration file for Debian/Ubuntu package --- xCAT/debian/dirs | 2 ++ xCAT/debian/install | 2 ++ xCAT/debian/postinst | 2 ++ 3 files changed, 6 insertions(+) diff --git a/xCAT/debian/dirs b/xCAT/debian/dirs index f1b529689..5a175ee43 100644 --- a/xCAT/debian/dirs +++ b/xCAT/debian/dirs @@ -7,4 +7,6 @@ opt/xcat/share/xcat etc/apache2/conf.d etc/apache2/conf-available etc/apache2/conf-enabled +etc/logrotate.d +etc/rsyslog.d opt/xcat/share/doc/packages/xCAT diff --git a/xCAT/debian/install b/xCAT/debian/install index 33798984d..ef7f7dd4d 100644 --- a/xCAT/debian/install +++ b/xCAT/debian/install @@ -6,3 +6,5 @@ postscripts/* install/postscripts/ prescripts/* install/prescripts/ templates/* opt/xcat/share/xcat/templates/ xCATMN etc/ +etc/logrotate.d/* etc/logrotate.d/ +etc/rsyslog.d/* etc/rsyslog.d/ diff --git a/xCAT/debian/postinst b/xCAT/debian/postinst index 509d48446..8165446f4 100644 --- a/xCAT/debian/postinst +++ b/xCAT/debian/postinst @@ -45,6 +45,8 @@ case "$1" in ln -s -f /etc/apache2/conf-available/xcat.conf.apach24 /etc/apache2/conf-enabled/xcat.conf /etc/init.d/apache2 restart + + kill -HUP $(/dev/null 2>&1 || : ;; abort-upgrade|abort-remove|abort-deconfigure)