{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/2032","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/2032/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/2032/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/2032/events","html_url":"https://github.com/Unitech/pm2/issues/2032","id":142010467,"number":2032,"title":"\"save\" not working on system reboot","user":{"login":"zettam","id":2744905,"avatar_url":"https://avatars.githubusercontent.com/u/2744905?v=3","gravatar_id":"","url":"https://api.github.com/users/zettam","html_url":"https://github.com/zettam","followers_url":"https://api.github.com/users/zettam/followers","following_url":"https://api.github.com/users/zettam/following{/other_user}","gists_url":"https://api.github.com/users/zettam/gists{/gist_id}","starred_url":"https://api.github.com/users/zettam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zettam/subscriptions","organizations_url":"https://api.github.com/users/zettam/orgs","repos_url":"https://api.github.com/users/zettam/repos","events_url":"https://api.github.com/users/zettam/events{/privacy}","received_events_url":"https://api.github.com/users/zettam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-19T01:04:15Z","updated_at":"2016-03-19T01:46:31Z","closed_at":null,"body":"So I've installed nvm and installed node 5.9.0.\r\nThen globally instlaled pm2.\r\n\r\ncreated my startup script\r\n\r\npm2 starts on system boot but it does not fire any apps.\r\n\r\nThen I checked it, if it's saving or not, by manually doing \"pm2 save\"\r\nAt this point when I restart the system it boots the saved apps!\r\n\r\nthe problem is that, if I don't do the save manually it just forgets the final state of everything running every time the system is booted. Is this normal? Is the behavior changed?"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/198610586","html_url":"https://github.com/Unitech/pm2/issues/2032#issuecomment-198610586","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/2032","id":198610586,"user":{"login":"tacoben","id":8246659,"avatar_url":"https://avatars.githubusercontent.com/u/8246659?v=3","gravatar_id":"","url":"https://api.github.com/users/tacoben","html_url":"https://github.com/tacoben","followers_url":"https://api.github.com/users/tacoben/followers","following_url":"https://api.github.com/users/tacoben/following{/other_user}","gists_url":"https://api.github.com/users/tacoben/gists{/gist_id}","starred_url":"https://api.github.com/users/tacoben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacoben/subscriptions","organizations_url":"https://api.github.com/users/tacoben/orgs","repos_url":"https://api.github.com/users/tacoben/repos","events_url":"https://api.github.com/users/tacoben/events{/privacy}","received_events_url":"https://api.github.com/users/tacoben/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T01:46:31Z","updated_at":"2016-03-19T01:46:31Z","body":"as far as i can tell this is how the npm version currently works.  The save function creates a file of some sort under .pm2 directory in the user/install directory... this file can be set to be immutable and  then you can survive a restart...\r\n\r\nsudo chattr +i /home/$USER/.pm2/dump.pm2"}}