2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-24 12:10:25 +00:00

Add new configuration files for rsyslog and logrotate

This commit is contained in:
GONG Jie
2015-08-27 12:38:09 +08:00
parent d0651b563a
commit bf04dd3a4b
3 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
/var/log/xcat/*.log {
missingok
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

View File

@@ -0,0 +1,2 @@
$template xCATTraditionalFormat0,"%timegenerated% %HOSTNAME% %syslogtag% %msg:::drop-last-lf%\n"
:syslogtag, isequal, "xcat" /var/log/xcat/cluster.log;xCATTraditionalFormat0

View File

@@ -0,0 +1,2 @@
$template xCATTraditionalFormat9,"%timegenerated% %HOSTNAME% %syslogtag% %msg:::drop-last-lf%\n"
:hostname, [!]isequal, $myhostname /var/log/xcat/computes.log;xCATTraditionalFormat9