{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/1891","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/1891/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/1891/events","html_url":"https://github.com/Unitech/pm2/issues/1891","id":126835121,"number":1891,"title":"Apps are not started after reboot","user":{"login":"slavafomin","id":1702725,"avatar_url":"https://avatars.githubusercontent.com/u/1702725?v=3","gravatar_id":"","url":"https://api.github.com/users/slavafomin","html_url":"https://github.com/slavafomin","followers_url":"https://api.github.com/users/slavafomin/followers","following_url":"https://api.github.com/users/slavafomin/following{/other_user}","gists_url":"https://api.github.com/users/slavafomin/gists{/gist_id}","starred_url":"https://api.github.com/users/slavafomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavafomin/subscriptions","organizations_url":"https://api.github.com/users/slavafomin/orgs","repos_url":"https://api.github.com/users/slavafomin/repos","events_url":"https://api.github.com/users/slavafomin/events{/privacy}","received_events_url":"https://api.github.com/users/slavafomin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T09:20:58Z","updated_at":"2016-01-15T15:09:51Z","closed_at":null,"body":"Hello there!\r\n\r\nThank you for your great work!\r\n\r\nHowever, I'm encountering a situation where apps added to PM2 are not restarted after a server reboot. The PM2's list is empty. I'm running PM2 under a custom `deploy` user in Ubuntu OS.\r\n\r\nI'm doing the following as a `deploy` user:\r\n\r\n`$ pm2 start /var/www/app-1/app.js --name app-1 -- --prod`\r\n`$ pm2 start /var/www/app-2/app.js --name app-2 -- --prod`\r\n`$ pm2 start /var/www/app-3/app.js --name app-3 -- --prod`\r\n\r\nThen I do: `sudo env PATH=$PATH:/usr/local/bin pm2 startup -u deploy`\r\n\r\nAfter that I do: `pm2 save` and `reboot`.\r\n\r\nAfter reboot the list of apps is empty.\r\n\r\nWhat could be the reason for this? Thank you!\r\n\r\n---\r\n\r\n```\r\n$ cat /etc/issue\r\nUbuntu 15.10\r\n```\r\n\r\n```\r\n# uname -a\r\nLinux 4.2.0-23-generic #28-Ubuntu SMP Sun Dec 27 17:48:35 UTC 2015 i686 i686 i686 GNU/Linux\r\n```\r\n\r\n```\r\n$ node --version\r\nv5.4.1\r\n```\r\n\r\n```\r\n$ pm2 --version\r\n1.0.0\r\n```"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/171986814","html_url":"https://github.com/Unitech/pm2/issues/1891#issuecomment-171986814","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/1891","id":171986814,"user":{"login":"estliberitas","id":568962,"avatar_url":"https://avatars.githubusercontent.com/u/568962?v=3","gravatar_id":"","url":"https://api.github.com/users/estliberitas","html_url":"https://github.com/estliberitas","followers_url":"https://api.github.com/users/estliberitas/followers","following_url":"https://api.github.com/users/estliberitas/following{/other_user}","gists_url":"https://api.github.com/users/estliberitas/gists{/gist_id}","starred_url":"https://api.github.com/users/estliberitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estliberitas/subscriptions","organizations_url":"https://api.github.com/users/estliberitas/orgs","repos_url":"https://api.github.com/users/estliberitas/repos","events_url":"https://api.github.com/users/estliberitas/events{/privacy}","received_events_url":"https://api.github.com/users/estliberitas/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T15:09:51Z","updated_at":"2016-01-15T15:09:51Z","body":"@slavafomin checkout `PM2_HOME` env variable value in startup script. Maybe that's the cause like in #1888 or #1321 or #1762 "}}