{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/6482","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/6482/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/6482/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/6482/events","html_url":"https://github.com/elastic/logstash/issues/6482","id":198733447,"number":6482,"title":"JAVACMD in startup.options not taken into account with upstart","user":{"login":"jakommo","id":6436143,"avatar_url":"https://avatars.githubusercontent.com/u/6436143?v=3","gravatar_id":"","url":"https://api.github.com/users/jakommo","html_url":"https://github.com/jakommo","followers_url":"https://api.github.com/users/jakommo/followers","following_url":"https://api.github.com/users/jakommo/following{/other_user}","gists_url":"https://api.github.com/users/jakommo/gists{/gist_id}","starred_url":"https://api.github.com/users/jakommo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakommo/subscriptions","organizations_url":"https://api.github.com/users/jakommo/orgs","repos_url":"https://api.github.com/users/jakommo/repos","events_url":"https://api.github.com/users/jakommo/events{/privacy}","received_events_url":"https://api.github.com/users/jakommo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-04T15:25:56Z","updated_at":"2017-01-04T16:54:25Z","closed_at":null,"body":"- Version: 5.1.1\r\n- Operating System: Ubuntu 14.04.5 (openjdk-7-jre-headless 7u111 installed but Java 8 needed) \r\n- Config File (if you have sensitive info, please remove it): -\r\n- Sample Data: -\r\n- Steps to Reproduce:\r\n\r\n* Install LS 5.1.1 via apt\r\n* Download Java 8 tgz and extract to /tmp\r\n* `export PATH=\"/tmp/jre1.8.0_111/bin:$PATH\" ` on the root shell \r\n* Replace JAVACMD with `JAVACMD=/tmp/jre1.8.0_111/bin/java` in `/etc/logstash/startup.options`\r\n* execute `/usr/share/logstash/bin/system-install` (returns success) \r\n```\r\n# service logstash start \r\nlogstash start/running, process 2185\r\n# ps auxw | grep logstash\r\nlogstash  2185  0.0  1.0 2494892 174916 ?      SNsl 15:20   0:16 /usr/bin/java -XX:+UseParNewG\r\n```\r\n* Still using `/usr/bin/java`\r\n* Adding the following to `/etc/default/logstash`, solved the issue. \r\n```\r\nJAVA_HOME=\"/tmp/jre1.8.0_111\"\r\nJAVACMD=/tmp/jre1.8.0_111/bin/java\r\nPATH=\"/tmp/jre1.8.0_111/bin:$JAVA_HOME:$PATH\"\r\n```\r\n```\r\n# service logstash restart \r\nlogstash start/running, process 2349\r\n# ps auxw | grep logstash\r\nlogstash  2349  0.0  0.6 3621268 106728 ?      SNsl 15:22   0:04 /tmp/jre1.8.0_111/bin/java -XX:\r\n```\r\n\r\nNot sure if related to https://github.com/elastic/logstash/pull/6199 "},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/270422481","html_url":"https://github.com/elastic/logstash/issues/6482#issuecomment-270422481","issue_url":"https://api.github.com/repos/elastic/logstash/issues/6482","id":270422481,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2017-01-04T16:54:25Z","updated_at":"2017-01-04T16:54:25Z","body":"I will say, I agree with the report that this behavior is probably a bit confusing.\r\n\r\nWe *could* make this behavior work to pass environment variables through, perhaps generating an /etc/sysconfig/logstash or /etc/default/logstash based on the environment at the time system-install is run. Thoughts?"}}
{"actor":{"display_login":"jordansissel"}}