{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4524","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4524/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4524/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4524/events","html_url":"https://github.com/spring-projects/spring-boot/issues/4524","id":117338146,"number":4524,"title":"Spring boot application may fail to start with init.d due to race condition in start-stop-daemon","user":{"login":"choene","id":7519642,"avatar_url":"https://avatars.githubusercontent.com/u/7519642?v=3","gravatar_id":"","url":"https://api.github.com/users/choene","html_url":"https://github.com/choene","followers_url":"https://api.github.com/users/choene/followers","following_url":"https://api.github.com/users/choene/following{/other_user}","gists_url":"https://api.github.com/users/choene/gists{/gist_id}","starred_url":"https://api.github.com/users/choene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choene/subscriptions","organizations_url":"https://api.github.com/users/choene/orgs","repos_url":"https://api.github.com/users/choene/repos","events_url":"https://api.github.com/users/choene/events{/privacy}","received_events_url":"https://api.github.com/users/choene/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/49","html_url":"https://github.com/spring-projects/spring-boot/milestones/1.3.1","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/49/labels","id":1396509,"number":49,"title":"1.3.1","description":"","creator":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":21,"state":"open","created_at":"2015-11-05T22:07:18Z","updated_at":"2015-11-27T13:05:11Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-11-17T11:47:31Z","updated_at":"2015-11-27T14:15:19Z","closed_at":null,"body":"Hello,\r\n\r\nI am starting a spring boot application as a service with /etc/init.d/<name>\r\n\r\nHowever, the init.d script stops with return code 1 and the message \"failed to start\".\r\n\r\nTo my understanding, the start-stop-daemon does not produce the pid file immediately. \r\n\r\nThus,  \"pid=$(cat \"$pid_file\")\" is returning an empty string. I added a sleep 1 before this line, that helps for the moment.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/160148261","html_url":"https://github.com/spring-projects/spring-boot/issues/4524#issuecomment-160148261","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4524","id":160148261,"user":{"login":"pmvilaca","id":1435190,"avatar_url":"https://avatars.githubusercontent.com/u/1435190?v=3","gravatar_id":"","url":"https://api.github.com/users/pmvilaca","html_url":"https://github.com/pmvilaca","followers_url":"https://api.github.com/users/pmvilaca/followers","following_url":"https://api.github.com/users/pmvilaca/following{/other_user}","gists_url":"https://api.github.com/users/pmvilaca/gists{/gist_id}","starred_url":"https://api.github.com/users/pmvilaca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmvilaca/subscriptions","organizations_url":"https://api.github.com/users/pmvilaca/orgs","repos_url":"https://api.github.com/users/pmvilaca/repos","events_url":"https://api.github.com/users/pmvilaca/events{/privacy}","received_events_url":"https://api.github.com/users/pmvilaca/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T14:15:19Z","updated_at":"2015-11-27T14:15:19Z","body":"I was using the launch script with Amazon linux and it was working fine. I can confirm the issue with ubuntu 14.04 as well"}}