{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/10595","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10595/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10595/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10595/events","html_url":"https://github.com/elastic/elasticsearch/pull/10595","id":68436827,"number":10595,"title":"Standardization of packages structure and install","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},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Packaging","name":":Packaging","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v1.6.0","name":"v1.6.0","color":"dddddd"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"closed","locked":false,"assignee":{"login":"spinscale","id":667544,"avatar_url":"https://avatars.githubusercontent.com/u/667544?v=3","gravatar_id":"","url":"https://api.github.com/users/spinscale","html_url":"https://github.com/spinscale","followers_url":"https://api.github.com/users/spinscale/followers","following_url":"https://api.github.com/users/spinscale/following{/other_user}","gists_url":"https://api.github.com/users/spinscale/gists{/gist_id}","starred_url":"https://api.github.com/users/spinscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinscale/subscriptions","organizations_url":"https://api.github.com/users/spinscale/orgs","repos_url":"https://api.github.com/users/spinscale/repos","events_url":"https://api.github.com/users/spinscale/events{/privacy}","received_events_url":"https://api.github.com/users/spinscale/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-04-14T16:39:38Z","updated_at":"2015-04-20T13:07:56Z","closed_at":"2015-04-20T13:07:56Z","pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/10595","html_url":"https://github.com/elastic/elasticsearch/pull/10595","diff_url":"https://github.com/elastic/elasticsearch/pull/10595.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/10595.patch"},"body":"The existing DEB/RPM packages have a lot of differences: they don't execute the same actions when installing or removing the package. They also don't declare exactly the same environment variables at the same place. At the end of the day the global behavior and configuration have *few variations* and it's difficult to maintain the scripts.\r\n\r\nThis commits unifies the package behavior:\r\n- DEB/RPM use the same package scripts (pre installation, post installation etc) in order to execute exactly the same actions\r\n- Use of a unique environment vars file that declares everything needed by scripts (~~the goal is to delete vars declaration in init.d and systemd scripts, this will be done in another PR~~ see comment below)\r\n- Variables like directory paths are centralized and replaced according to the target platform (using #10330)\r\n- Move /etc/rc.d/init.d to standard /etc/init.d (RPM only)\r\n- Add PID_DIR env var\r\n- Always set ES_USER, ES_GROUP,MAX_MAP_COUNT and MAX_OPEN_FILES in env vars file\r\n- Create log, data, work and plugins directories with DEB/RPM packaging system\r\n- Change to elastic.co domain in copyright and control files\r\n- Add Bats files to automate testing of DEB and RPM packages\r\n- Update TESTING.asciidoc\r\n\r\nMore info on Bats here:  https://github.com/sstephenson/bats"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/94447152","html_url":"https://github.com/elastic/elasticsearch/pull/10595#issuecomment-94447152","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10595","id":94447152,"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-04-20T13:07:56Z","updated_at":"2015-04-20T13:07:56Z","body":"Merged in 867955188e6e5f86331cbd7ea7273f637ced1f17 and 0dad33f17f3a3dc62e8226cdeced5e17b6976459"}}