{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/1767","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/1767/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/1767/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/1767/events","html_url":"https://github.com/Unitech/pm2/issues/1767","id":116794261,"number":1767,"title":"cron_restart and autorestart","user":{"login":"debovitch","id":14014089,"avatar_url":"https://avatars.githubusercontent.com/u/14014089?v=3","gravatar_id":"","url":"https://api.github.com/users/debovitch","html_url":"https://github.com/debovitch","followers_url":"https://api.github.com/users/debovitch/followers","following_url":"https://api.github.com/users/debovitch/following{/other_user}","gists_url":"https://api.github.com/users/debovitch/gists{/gist_id}","starred_url":"https://api.github.com/users/debovitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debovitch/subscriptions","organizations_url":"https://api.github.com/users/debovitch/orgs","repos_url":"https://api.github.com/users/debovitch/repos","events_url":"https://api.github.com/users/debovitch/events{/privacy}","received_events_url":"https://api.github.com/users/debovitch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Unitech/pm2/labels/Feature","name":"Feature","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-13T15:47:27Z","updated_at":"2015-11-24T12:42:56Z","closed_at":"2015-11-24T12:19:47Z","body":"I have a script that I don't want to restart after crash but I want to launch it at fixed time, for instance every day.\r\nSo I set my options this way : \r\n<pre>\r\n       pm2.start({\r\n                apps: [\r\n                    {   \r\n                        name: \"myscript\",\r\n                        script: \"./bin/myscript\",\r\n                        exec_mode: \"cluster\",\r\n                        args: importArgs,\r\n                        cron_restart: \"0 0 * * *\",\r\n                        autorestart: false\r\n                    }\r\n                ]\r\n            }, ...\r\n</pre>\r\nCron never starts with this code, and if I remove autorestart option, cron does work.\r\n\r\nDid I miss something or is it a bug ?\r\n"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/159256867","html_url":"https://github.com/Unitech/pm2/issues/1767#issuecomment-159256867","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/1767","id":159256867,"user":{"login":"debovitch","id":14014089,"avatar_url":"https://avatars.githubusercontent.com/u/14014089?v=3","gravatar_id":"","url":"https://api.github.com/users/debovitch","html_url":"https://github.com/debovitch","followers_url":"https://api.github.com/users/debovitch/followers","following_url":"https://api.github.com/users/debovitch/following{/other_user}","gists_url":"https://api.github.com/users/debovitch/gists{/gist_id}","starred_url":"https://api.github.com/users/debovitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debovitch/subscriptions","organizations_url":"https://api.github.com/users/debovitch/orgs","repos_url":"https://api.github.com/users/debovitch/repos","events_url":"https://api.github.com/users/debovitch/events{/privacy}","received_events_url":"https://api.github.com/users/debovitch/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T12:42:56Z","updated_at":"2015-11-24T12:42:56Z","body":"Got it, thanks for your reply. "}}