Read the statement by Michael Teeuw here.
pm2 flush with crontab
-
Hello,
I try to flush the pm2 logs every morning with crontab using this command…
30 07 * * * pm2 flush
but it does not work automatically, without any error showing.
Does anyone of you know how to perform this action with crontab?
Many thanks.
-
@com1cedric you need to do the crontab a s the user where pm2 is installed, not root
-
Many thanks @sdetweil , I will try!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login