mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Give user info about replacement of entries
This commit is contained in:
		@@ -36,6 +36,7 @@ isRsyslog=0
 | 
			
		||||
isC3=0
 | 
			
		||||
xCATSettingsSTART="xCAT settings START"
 | 
			
		||||
xCATSettingsEND="xCAT settings END"
 | 
			
		||||
xCATSettingsInfo="Entries between the START and END lines will be replaced on the next xCAT install or update"
 | 
			
		||||
#systemdEnabled=0
 | 
			
		||||
# pmatch determines if 1st argument string is matched by 2nd argument pattern
 | 
			
		||||
 | 
			
		||||
@@ -97,6 +98,7 @@ config_Rsyslog_C3()
 | 
			
		||||
 | 
			
		||||
  # Mark the start of xCAT section
 | 
			
		||||
  echo "# $xCATSettingsSTART" >> $2
 | 
			
		||||
  echo "# $xCATSettingsInfo" >> $2
 | 
			
		||||
  #enable to receive remote logging
 | 
			
		||||
  if [ $isReceiving -eq 1 ]; then
 | 
			
		||||
      #listen on the udp and tcp port to receive the remote logs
 | 
			
		||||
@@ -189,6 +191,7 @@ config_rsyslog_V8()
 | 
			
		||||
 | 
			
		||||
    # Mark the start of xCAT section
 | 
			
		||||
    echo "# $xCATSettingsSTART" >> $conf_file
 | 
			
		||||
    echo "# $xCATSettingsInfo" >> $conf_file
 | 
			
		||||
    echo "#*.debug   /var/log/messages"  >> $conf_file
 | 
			
		||||
    # Need to uncomment the lines $ModLoad imudp.so and $UDPServerRun 514,
 | 
			
		||||
    # to make the MN be able to receive syslog from remote hosts
 | 
			
		||||
@@ -232,6 +235,7 @@ config_rsyslog_V8()
 | 
			
		||||
 | 
			
		||||
    # add xCAT entries
 | 
			
		||||
    echo "# $xCATSettingsSTART" >> $remoteconf
 | 
			
		||||
    echo "# $xCATSettingsInfo" >> $remoteconf
 | 
			
		||||
    echo "*.* @$master" >> $remoteconf
 | 
			
		||||
    echo "# $xCATSettingsEND" >> $remoteconf
 | 
			
		||||
 fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user