{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11594","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11594/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11594/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11594/events","html_url":"https://github.com/elastic/elasticsearch/issues/11594","id":87237723,"number":11594,"title":"Path to file elasticsearch.pid not exist after restart ","user":{"login":"konstantinkostin28","id":12840987,"avatar_url":"https://avatars.githubusercontent.com/u/12840987?v=3","gravatar_id":"","url":"https://api.github.com/users/konstantinkostin28","html_url":"https://github.com/konstantinkostin28","followers_url":"https://api.github.com/users/konstantinkostin28/followers","following_url":"https://api.github.com/users/konstantinkostin28/following{/other_user}","gists_url":"https://api.github.com/users/konstantinkostin28/gists{/gist_id}","starred_url":"https://api.github.com/users/konstantinkostin28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstantinkostin28/subscriptions","organizations_url":"https://api.github.com/users/konstantinkostin28/orgs","repos_url":"https://api.github.com/users/konstantinkostin28/repos","events_url":"https://api.github.com/users/konstantinkostin28/events{/privacy}","received_events_url":"https://api.github.com/users/konstantinkostin28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T07:06:36Z","updated_at":"2015-06-11T07:35:58Z","closed_at":null,"body":"During start elasticsearch (version 1.6) service after restart ubuntu machine I have following error:\r\n\r\ntouch: cannot touch ‘/var/run/elasticsearch/elasticsearch.pid’: No such file or directory\r\n\r\nThis occurs because elasticsearch.pid move to /elasticsearch directory (PID_DIR=\"/var/run/elasticsearch\", PID_FILE=\"$PID_DIR/$NAME.pid\") and ubuntu remove this after restart. Command \"touch\" does not create parent directories.\r\n\r\nIn version 1.5 the .pid file was in /var/run/ directiry (PID_FILE=\"/var/run/$NAME.pid\") and so was no error."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/111030053","html_url":"https://github.com/elastic/elasticsearch/issues/11594#issuecomment-111030053","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11594","id":111030053,"user":{"login":"tlrx","id":642733,"avatar_url":"https://avatars.githubusercontent.com/u/642733?v=3","gravatar_id":"","url":"https://api.github.com/users/tlrx","html_url":"https://github.com/tlrx","followers_url":"https://api.github.com/users/tlrx/followers","following_url":"https://api.github.com/users/tlrx/following{/other_user}","gists_url":"https://api.github.com/users/tlrx/gists{/gist_id}","starred_url":"https://api.github.com/users/tlrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlrx/subscriptions","organizations_url":"https://api.github.com/users/tlrx/orgs","repos_url":"https://api.github.com/users/tlrx/repos","events_url":"https://api.github.com/users/tlrx/events{/privacy}","received_events_url":"https://api.github.com/users/tlrx/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T07:35:58Z","updated_at":"2015-06-11T07:35:58Z","body":"@konstantinkostin28 thanks for your reporting and you're right, the PID_DIR should be created before `touch` the file."}}