{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3271","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3271/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3271/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3271/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3271","id":89152796,"number":3271,"title":"init.d boot/loader/tools/launch.script env parameter defaults","user":{"login":"bedge","id":499317,"avatar_url":"https://avatars.githubusercontent.com/u/499317?v=3","gravatar_id":"","url":"https://api.github.com/users/bedge","html_url":"https://github.com/bedge","followers_url":"https://api.github.com/users/bedge/followers","following_url":"https://api.github.com/users/bedge/following{/other_user}","gists_url":"https://api.github.com/users/bedge/gists{/gist_id}","starred_url":"https://api.github.com/users/bedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedge/subscriptions","organizations_url":"https://api.github.com/users/bedge/orgs","repos_url":"https://api.github.com/users/bedge/repos","events_url":"https://api.github.com/users/bedge/events{/privacy}","received_events_url":"https://api.github.com/users/bedge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-17T23:32:33Z","updated_at":"2015-06-17T23:44:52Z","closed_at":null,"body":"This is a minor wishlist item. The init.d wrapper is very cool. I'm just nitpicking.\r\n\r\nThe docs \r\n(http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/deployment-install.html#deployment-script-customization)\r\nstate that one can set env variables to change the defaults for things like the LOG_FOLDER.\r\nThis is not ideal for the use case where one distributes a package consisting of the war and an init.d symlink, which one can do with spring boot now:\r\n```\r\n%C> dpkg -c build/distributions/*deb\r\n-rwxr--r-- bedge/0    39950188 2015-06-17 11:25 ./opt/nim/cmas/nim-cmas.war\r\nlrw-r--r-- root/root         0 2015-06-17 11:25 ./etc/init.d/nim-cmas -> /opt/nim/cmas/nim-cmas.war\r\n```\r\nAny env settings that are global, so that they are present when init.d scripts are started necessarily impact all applications. \r\nIOW, to set the log folder for m one app, I need LOG_FOLDER exported globally in all shells.\r\nIf I have to apps I can't set the LOG_FOLDER settings differently.\r\n\r\nI'd prefer to have the launch.script look for a file\r\n```\r\n/etc/default/<app name>\r\n```\r\nwhich, if exists is sourced. \r\n\r\nThis would allow one to include an app-specific conffile for sping-boot wars that the user could override at an app specific level if needed.\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/112981187","html_url":"https://github.com/spring-projects/spring-boot/issues/3271#issuecomment-112981187","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3271","id":112981187,"user":{"login":"spencergibb","id":594085,"avatar_url":"https://avatars.githubusercontent.com/u/594085?v=3","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T23:44:52Z","updated_at":"2015-06-17T23:44:52Z","body":"see #3243, I think it does what you are suggesting."}}