{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2399","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2399/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2399/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2399/events","html_url":"https://github.com/gogits/gogs/pull/2399","id":126484763,"number":2399,"title":"OS X launchd script","user":{"login":"nanoant","id":103067,"avatar_url":"https://avatars.githubusercontent.com/u/103067?v=3","gravatar_id":"","url":"https://api.github.com/users/nanoant","html_url":"https://github.com/nanoant","followers_url":"https://api.github.com/users/nanoant/followers","following_url":"https://api.github.com/users/nanoant/following{/other_user}","gists_url":"https://api.github.com/users/nanoant/gists{/gist_id}","starred_url":"https://api.github.com/users/nanoant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanoant/subscriptions","organizations_url":"https://api.github.com/users/nanoant/orgs","repos_url":"https://api.github.com/users/nanoant/repos","events_url":"https://api.github.com/users/nanoant/events{/privacy}","received_events_url":"https://api.github.com/users/nanoant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T18:38:47Z","updated_at":"2016-01-14T06:42:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/2399","html_url":"https://github.com/gogits/gogs/pull/2399","diff_url":"https://github.com/gogits/gogs/pull/2399.diff","patch_url":"https://github.com/gogits/gogs/pull/2399.patch"},"body":"Using this script:\r\n\r\n1. Copy scripts/launchd/io.gogs.web.plist into `/Library/LaunchDaemons`\r\n\r\n2. The script assumes Gogs is running under `gogs` user and group, modify `/Library/LaunchDaemons/io.gogs.web.plist` if you want to user different user.\r\n\r\n3. The script assumes Gogs is installed in `/Users/git/gogs`, modify `/Library/LaunchDaemons/io.gogs.web.plist` if you installed Gogs in different location.\r\n\r\n4. Once you are sure that running Gogs manually via `gogs web` works fine, run it as a launchd service with:\r\n\r\n         sudo launchctl load -F /Library/LaunchDaemons/io.gogs.web.plist\r\n\r\nFrom now on launchd will ensure Gogs is running, eg. when system is restarted."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/171554242","html_url":"https://github.com/gogits/gogs/pull/2399#issuecomment-171554242","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2399","id":171554242,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T06:42:47Z","updated_at":"2016-01-14T06:42:47Z","body":"Thank you!\r\n\r\nMaybe you should make a PR to `docs` repository for these steps?"}}