{"action":"opened","issue":{"url":"https://api.github.com/repos/zone117x/Jackett/issues/35","labels_url":"https://api.github.com/repos/zone117x/Jackett/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/zone117x/Jackett/issues/35/comments","events_url":"https://api.github.com/repos/zone117x/Jackett/issues/35/events","html_url":"https://github.com/zone117x/Jackett/issues/35","id":73650269,"number":35,"title":"Linux upstart script","user":{"login":"McGriddle","id":5432956,"avatar_url":"https://avatars.githubusercontent.com/u/5432956?v=3","gravatar_id":"","url":"https://api.github.com/users/McGriddle","html_url":"https://github.com/McGriddle","followers_url":"https://api.github.com/users/McGriddle/followers","following_url":"https://api.github.com/users/McGriddle/following{/other_user}","gists_url":"https://api.github.com/users/McGriddle/gists{/gist_id}","starred_url":"https://api.github.com/users/McGriddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McGriddle/subscriptions","organizations_url":"https://api.github.com/users/McGriddle/orgs","repos_url":"https://api.github.com/users/McGriddle/repos","events_url":"https://api.github.com/users/McGriddle/events{/privacy}","received_events_url":"https://api.github.com/users/McGriddle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-06T15:07:24Z","updated_at":"2015-05-06T15:07:24Z","closed_at":null,"body":"Figured I'd share this for anyone that's also running on linux.\r\n\r\nHere is an upstart script for Jackett.\r\n\r\n```\r\nauthor \"Simon Tallmyr - Nosscire\"\r\ndescription \"Upstart Script to run NzbDrone as a service on Ubuntu/Debian based systems, as well as others\"\r\n\r\n#Set username for the process. Should probably be what you use for logging in\r\nsetuid mcg\r\n\r\n#This is the install directory. If you installed using a deb package or the NzbDrone Repository you do not need to change this\r\nenv DIR=/opt/Jackett\r\n\r\nsetgid mcg\r\nstart on runlevel [2345]\r\nstop on runlevel [016]\r\n\r\n#respawn\r\nscript\r\n    chdir $DIR\r\n    exec mono Jackett.exe\r\nend script\r\n```\r\n\r\nA few things I had to do:\r\n - ensure /opt/Jackett had all the files from a release init\r\n - ensure that /opt/Jackett was owned by mcg:mcg\r\n - ensure /usr/share/Jackett was owned by mcg:mcg\r\n"}}