{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4232","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4232/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4232/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4232/events","html_url":"https://github.com/spring-projects/spring-boot/issues/4232","id":112099369,"number":4232,"title":"Allow non sudoer user to start spring-boot service by default","user":{"login":"nodje","id":75604,"avatar_url":"https://avatars.githubusercontent.com/u/75604?v=3","gravatar_id":"","url":"https://api.github.com/users/nodje","html_url":"https://github.com/nodje","followers_url":"https://api.github.com/users/nodje/followers","following_url":"https://api.github.com/users/nodje/following{/other_user}","gists_url":"https://api.github.com/users/nodje/gists{/gist_id}","starred_url":"https://api.github.com/users/nodje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodje/subscriptions","organizations_url":"https://api.github.com/users/nodje/orgs","repos_url":"https://api.github.com/users/nodje/repos","events_url":"https://api.github.com/users/nodje/events{/privacy}","received_events_url":"https://api.github.com/users/nodje/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/waiting-for-feedback","name":"waiting-for-feedback","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T08:40:58Z","updated_at":"2015-10-19T08:55:31Z","closed_at":null,"body":"It'd be nice to be able to start spring-boot as a Unix service ```/etc/init.d/myapp start``` without using sudo.\r\n\r\nBecause of the usage by default of folders ```/var/log``` and ```/var/run``` it's not possible, by default.\r\n\r\nIf launch.script creates a folder inside ```/var/log``` and ```/var/run``` and makes the non sudo user the owner of these, it should be possible to start the service as non privileged user."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/149150218","html_url":"https://github.com/spring-projects/spring-boot/issues/4232#issuecomment-149150218","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4232","id":149150218,"user":{"login":"wilkinsona","id":914682,"avatar_url":"https://avatars.githubusercontent.com/u/914682?v=3","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T08:55:31Z","updated_at":"2015-10-19T08:55:31Z","body":"I don't think I understand what you're proposing. The default permissions for `var/log` prevent a normal user from creating a directory there so using a sub-directory by default won't help as you'd still need to use sudo to allow the script to create those directories. Note that the script already creates any directories and changes ownership of files to allow the application to run as the user that owns the application jar file. What have I missed?\r\n"}}