10 lines
		
	
	
		
			220 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			220 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
 | |
| EXITVALUE=$?
 | |
| if [ $EXITVALUE != 0 ]; then
 | |
|     /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
 | |
| fi
 | |
| exit 0
 | |
| 
 |