2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-04 12:30:10 +00:00

Added the check for rsyslog and to kill that process to xCATsn

This commit is contained in:
Victor Hu 2015-10-13 07:54:59 -04:00
parent 21d8eeef1c
commit 8fe3ce628f
3 changed files with 9 additions and 1 deletions

View File

@ -46,6 +46,7 @@ case "$1" in
/etc/init.d/apache2 restart
# Let rsyslogd perform close of any open files
if [ -e /var/run/rsyslogd.pid ]; then
kill -HUP $(</var/run/rsyslogd.pid) >/dev/null 2>&1 || :
elif [ -e /var/run/syslogd.pid ]; then

View File

@ -201,7 +201,7 @@ then
cp /etc/xcat/conf.orig/xcat.conf.apach24 /etc/apache2/conf.d/xcat.conf
fi
# Lets rsyslogd perform close all open files
# Let rsyslogd perform close of any open files
if [ -e /var/run/rsyslogd.pid ]; then
kill -HUP $(</var/run/rsyslogd.pid) >/dev/null 2>&1 || :
elif [ -e /var/run/syslogd.pid ]; then

View File

@ -156,6 +156,13 @@ if [ -n "$version" ]; then
fi
# Let rsyslogd perform close of any open files
if [ -e /var/run/rsyslogd.pid ]; then
kill -HUP $(</var/run/rsyslogd.pid) >/dev/null 2>&1 || :
elif [ -e /var/run/syslogd.pid ]; then
kill -HUP $(</var/run/syslogd.pid) >/dev/null 2>&1 || :
fi
%endif
# create dir for the current pid and move the original ones from /tmp/xcat to /var/run/xcat