Announcement Announcement Module
Collapse
No announcement yet.
Logrotate cronjob setup for a cPanel user Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logrotate cronjob setup for a cPanel user

    Logrotate cronjob format.

    /usr/sbin/logrotate -s /home/xxxx/logrotate/logrotate.status /home/xxxx/public_html/cgi-bin/logrotate.conf -f

    Please make sure that you are creating the logrotate status file inside the user home directory or by default it may be created in the /var/lib location and you will get the following error message.

    error: error creating state file /var/lib/logrotate.status: Permission denied
Working...
X