{"action":"created","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1560","repository_url":"https://api.github.com/repos/Sonarr/Sonarr","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1560/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1560/events","html_url":"https://github.com/Sonarr/Sonarr/issues/1560","id":191364384,"number":1560,"title":"Init.d Autostart on Debian - Script Launching as root rather than nzbdrone user defined/created","user":{"login":"schniederzero","id":23707132,"avatar_url":"https://avatars.githubusercontent.com/u/23707132?v=3","gravatar_id":"","url":"https://api.github.com/users/schniederzero","html_url":"https://github.com/schniederzero","followers_url":"https://api.github.com/users/schniederzero/followers","following_url":"https://api.github.com/users/schniederzero/following{/other_user}","gists_url":"https://api.github.com/users/schniederzero/gists{/gist_id}","starred_url":"https://api.github.com/users/schniederzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schniederzero/subscriptions","organizations_url":"https://api.github.com/users/schniederzero/orgs","repos_url":"https://api.github.com/users/schniederzero/repos","events_url":"https://api.github.com/users/schniederzero/events{/privacy}","received_events_url":"https://api.github.com/users/schniederzero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-23T19:44:47Z","updated_at":"2016-11-23T19:54:26Z","closed_at":"2016-11-23T19:54:26Z","body":"Hello Sonarr Team!\r\n\r\nFirst of all, you're doing a great job with this software. It is amazing!\r\n\r\nHowever, I have run into an issue with the Debian init.d startup script. I've copied the script from the wiki page [here](https://github.com/Sonarr/Sonarr/wiki/Autostart-on-Debian), but rather than starting up as the user nzbdrone, the service still starts as root. I've opened a topic on the Sonarr site and was provided some information from Markus, however that and a little of my own investigation hasn't turned up any answers.\r\n\r\nHas anyone else run into this? This is persistent across two different Debian installs, meaning the script, and myself, are the common denominators here. \r\n\r\nAre there any debug logs I can pull? \r\n\r\nroot 759 0.4 3.8 179980 119360 ? Sl 17:05 0:18 /usr/bin/mono /opt/NzbDrone/NzbDrone.exe\r\n\r\nValid user does exist:\r\nnzbdrone:x:1001:1001:NzbDrone Sonarr Media:/opt/NzbDrone:/usr/sbin/nologin\r\n\r\nI've given it a valid bash shell for testing, which made no different.\r\nI've called --user, on top of your -c, in the init.d script per the man page examples, but it also made no difference. \r\n\r\nI'm relatively new to Debian (Jessie) and this is a learning process. I appreciate any help or direction that you can share. I will continue my own investigation and update if I find anything. \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/comments/262615438","html_url":"https://github.com/Sonarr/Sonarr/issues/1560#issuecomment-262615438","issue_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1560","id":262615438,"user":{"login":"markus101","id":413544,"avatar_url":"https://avatars.githubusercontent.com/u/413544?v=3","gravatar_id":"","url":"https://api.github.com/users/markus101","html_url":"https://github.com/markus101","followers_url":"https://api.github.com/users/markus101/followers","following_url":"https://api.github.com/users/markus101/following{/other_user}","gists_url":"https://api.github.com/users/markus101/gists{/gist_id}","starred_url":"https://api.github.com/users/markus101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markus101/subscriptions","organizations_url":"https://api.github.com/users/markus101/orgs","repos_url":"https://api.github.com/users/markus101/repos","events_url":"https://api.github.com/users/markus101/events{/privacy}","received_events_url":"https://api.github.com/users/markus101/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T19:54:26Z","updated_at":"2016-11-23T19:54:26Z","body":"The forums are the correct location for support and troubleshooting.\r\n\r\nThe issue lies outside of Sonarr and the init.d script was written by some one else. You should take a look at systemd as it should be included with Debian Jessie and is supposed to be used going forward (at least that is my understanding).\r\n\r\nForum thread for anyone else's benefit.\r\nhttps://forums.sonarr.tv/t/is-nzbdrone-running-under-the-root-account-or-the-nzbdrone-user-defined-in-the-init-d-script/12808/4"}}
{"actor":{"display_login":"markus101"}}