Created
June 30, 2014 18:04
-
-
Save datawebbie/045e9f1d1f7bb456e35b to your computer and use it in GitHub Desktop.
Plesk 11.5 disable cron logrotate email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| please follow the provided instructions: | |
| #cat /etc/cron.daily/logrotate | |
| #!/bin/sh | |
| /usr/sbin/logrotate /etc/logrotate.conf | |
| EXITVALUE=$? | |
| if [ $EXITVALUE != 0 ]; then | |
| /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" | |
| fi | |
| exit 0 | |
| To disable email notification you can set MAILTO="" variable at the start of your logrotate file: | |
| - Edit/open logrotate | |
| #vi /etc/cron.daily/logrotate | |
| - At the top of the file, enter: | |
| MAILTO="" | |
| - Save and close the file. | |
| You can try to start logrotate manually and see what you got: | |
| # /bin/sh /etc/cron.daily/logrotate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment