mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	Addeed syslog setup.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -368,6 +368,22 @@ if (( ! -r "/etc/xcat/policy.sqlite" ) || $::FORCE) { | ||||
|     } | ||||
| } | ||||
|  | ||||
| # setup syslog | ||||
| cp /etc/syslog.conf /etc/syslog.conf.ORIG | ||||
| echo "*.debug   /var/log/localmessages" > /etc/test.tmp | ||||
| echo "*.crit   /var/log/localmessages" >> /etc/test.tmp | ||||
| cat /etc/test.tmp >> /etc/syslog.conf | ||||
| rm /etc/test.tmp | ||||
| touch /var/log/localmessages | ||||
|  | ||||
| if ($::osname eq 'AIX') { | ||||
| 	stopsrc -s syslogd | ||||
| 	startsrc -s syslogd | ||||
| } else { | ||||
| 	/etc/rc.d/init.d/syslog stop | ||||
| 	/etc/rc.d/init.d/syslog start | ||||
| } | ||||
|  | ||||
| # | ||||
| #  set up the certificates for xcatd  | ||||
| # | ||||
|   | ||||
		Reference in New Issue
	
	Block a user