{"action":"created","issue":{"url":"https://api.github.com/repos/pimatic/pimatic/issues/499","labels_url":"https://api.github.com/repos/pimatic/pimatic/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/pimatic/pimatic/issues/499/comments","events_url":"https://api.github.com/repos/pimatic/pimatic/issues/499/events","html_url":"https://github.com/pimatic/pimatic/issues/499","id":55282568,"number":499,"title":"How to automatically restart service","user":{"login":"cklam2","id":10433949,"avatar_url":"https://avatars.githubusercontent.com/u/10433949?v=3","gravatar_id":"","url":"https://api.github.com/users/cklam2","html_url":"https://github.com/cklam2","followers_url":"https://api.github.com/users/cklam2/followers","following_url":"https://api.github.com/users/cklam2/following{/other_user}","gists_url":"https://api.github.com/users/cklam2/gists{/gist_id}","starred_url":"https://api.github.com/users/cklam2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cklam2/subscriptions","organizations_url":"https://api.github.com/users/cklam2/orgs","repos_url":"https://api.github.com/users/cklam2/repos","events_url":"https://api.github.com/users/cklam2/events{/privacy}","received_events_url":"https://api.github.com/users/cklam2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-23T13:44:19Z","updated_at":"2015-01-26T23:44:13Z","closed_at":"2015-01-25T23:39:08Z","body":"Right now i start the pimatic service with init.d script. \r\n\r\nEvery now and then the process seems to crash but the service doesn't start again automatically.\r\nYes, the pimatic shouldn't crash but I'm still investigating why (different issue). \r\n\r\nIn the meantime I'd like to know if there is a way to automatically start the service again when it crashed. "},"comment":{"url":"https://api.github.com/repos/pimatic/pimatic/issues/comments/71562719","html_url":"https://github.com/pimatic/pimatic/issues/499#issuecomment-71562719","issue_url":"https://api.github.com/repos/pimatic/pimatic/issues/499","id":71562719,"user":{"login":"cklam2","id":10433949,"avatar_url":"https://avatars.githubusercontent.com/u/10433949?v=3","gravatar_id":"","url":"https://api.github.com/users/cklam2","html_url":"https://github.com/cklam2","followers_url":"https://api.github.com/users/cklam2/followers","following_url":"https://api.github.com/users/cklam2/following{/other_user}","gists_url":"https://api.github.com/users/cklam2/gists{/gist_id}","starred_url":"https://api.github.com/users/cklam2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cklam2/subscriptions","organizations_url":"https://api.github.com/users/cklam2/orgs","repos_url":"https://api.github.com/users/cklam2/repos","events_url":"https://api.github.com/users/cklam2/events{/privacy}","received_events_url":"https://api.github.com/users/cklam2/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:44:13Z","updated_at":"2015-01-26T23:44:13Z","body":"Yup, seems to work. Very happy :)\r\n\r\nI called my script \"pimatic-wd.sh\" and put it in the \"pimatic-app\" directory, so wrong... So for people who also want to use the script, make sure that the entire file path does NOT contain the word pimatic. "}}