Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • it looks like it can't run what is specified as the postrotate action, show us your /etc/logrotate.d/nginix script Commented Jun 14, 2015 at 16:19
  • /var/log/nginx/*.log { weekly missingok rotate 52 compress delaycompress notifempty create 0640 www-data adm sharedscripts prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ run-parts /etc/logrotate.d/httpd-prerotate; \ fi \ endscript postrotate invoke-rc.d nginx rotate >/dev/null 2>&1 endscript } Commented Jun 14, 2015 at 20:39
  • 1
    It's normal to update your question with further information when requested. 4 spaces at start of each line makes it a code block. Commented Jun 15, 2015 at 16:26
  • So, invoke-rc.d nginx rotate is failing, try running that as the appropriate user, and show us that script too, paste output into your original question. tks. Commented Jun 15, 2015 at 16:28
  • Tried running it, received an invalid command error. Commented Jun 15, 2015 at 21:54