Skip to content

Instantly share code, notes, and snippets.

@datawebbie
Created June 30, 2014 18:04
Show Gist options
  • Select an option

  • Save datawebbie/045e9f1d1f7bb456e35b to your computer and use it in GitHub Desktop.

Select an option

Save datawebbie/045e9f1d1f7bb456e35b to your computer and use it in GitHub Desktop.
Plesk 11.5 disable cron logrotate email
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