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:
parent
21d8eeef1c
commit
8fe3ce628f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user