Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postrotate not working #42

Open
jp1987 opened this issue Jul 23, 2018 · 0 comments
Open

Postrotate not working #42

jp1987 opened this issue Jul 23, 2018 · 0 comments

Comments

@jp1987
Copy link

jp1987 commented Jul 23, 2018

I use the following config:

logrotate_scripts:
  - name: node
    path: "/var/log/forever/*.log"
    options:
      - daily
      - dateext
      - missingok
      - rotate 30
      - compress
      - delaycompress
      - notifempty
      - copytruncate
    scripts:
      postrotate: "mv /var/log/forever/*.gz /var/log/forever/archive"

The logs are never rotated into the archive folder (running the command manually works). What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant