-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
I can't seem to get pm2's cron to actually restart a process - take this example:
kyle@--------------:~/nodeSites/gustavus$ date
Mon Jun 2 08:34:58 EDT 2014
kyle@--------------:~/nodeSites/gustavus$ pm2 start wpServices.node.js -n wpService --cron 36 8 * * * -x
36
PM2 Process launched
┌─────────────┬────┬─────────┬───────┬────────┬──────┬───────────┬────────┬───────────┬────────────────────────────────────────────┐
│ App Name │ id │ mode │ PID │ status │ port │ Restarted │ Uptime │ memory │ err logs │
├─────────────┼────┼─────────┼───────┼────────┼──────┼───────────┼────────┼───────────┼────────────────────────────────────────────┤
│ wpService │ 17 │ fork │ 3228 │ online │ │ 0 │ 0s │ 4.719 MB │ /home/kyle/.pm2/logs/wpService-err-17.log │
└─────────────┴────┴─────────┴───────┴────────┴──────┴───────────┴────────┴───────────┴────────────────────────────────────────────┘
kyle@--------------:~/nodeSites/gustavus$ date
Mon Jun 2 08:35:17 EDT 2014
kyle@--------------:~/nodeSites/gustavus$ date
Mon Jun 2 08:36:09 EDT 2014
kyle@--------------:~/nodeSites/gustavus$ pm2 list
┌─────────────┬────┬─────────┬───────┬────────┬──────┬───────────┬────────┬───────────┬────────────────────────────────────────────┐
│ App Name │ id │ mode │ PID │ status │ port │ Restarted │ Uptime │ memory │ err logs │
├─────────────┼────┼─────────┼───────┼────────┼──────┼───────────┼────────┼───────────┼────────────────────────────────────────────┤
│ wpService │ 17 │ fork │ 3228 │ online │ │ 0 │ 69s │ 25.773 MB │ /home/kyle/.pm2/logs/wpService-err-17.log │
└─────────────┴────┴─────────┴───────┴────────┴──────┴───────────┴────────┴───────────┴────────────────────────────────────────────┘
(other process were redacted)
Am I doing something wrong or is this an actual bug?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels