{"action":"closed","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/852","labels_url":"https://api.github.com/repos/gogits/gogs/issues/852/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/852/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/852/events","html_url":"https://github.com/gogits/gogs/issues/852","id":54011771,"number":852,"title":"gogs as service on ubuntu via upstart","user":{"login":"guycalledseven","id":1009843,"avatar_url":"https://avatars.githubusercontent.com/u/1009843?v=3","gravatar_id":"","url":"https://api.github.com/users/guycalledseven","html_url":"https://github.com/guycalledseven","followers_url":"https://api.github.com/users/guycalledseven/followers","following_url":"https://api.github.com/users/guycalledseven/following{/other_user}","gists_url":"https://api.github.com/users/guycalledseven/gists{/gist_id}","starred_url":"https://api.github.com/users/guycalledseven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guycalledseven/subscriptions","organizations_url":"https://api.github.com/users/guycalledseven/orgs","repos_url":"https://api.github.com/users/guycalledseven/repos","events_url":"https://api.github.com/users/guycalledseven/events{/privacy}","received_events_url":"https://api.github.com/users/guycalledseven/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/deployment","name":"deployment","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-12T00:41:19Z","updated_at":"2015-11-15T20:15:39Z","closed_at":"2015-11-15T20:15:39Z","body":"Hi,\r\nI was trying to make gogs play nice with upstart on ubuntu 14.04 LTS and got stuck with KILL SIGNAL. I understand gogs doesn't have zero downtime functionality (grecafull shutdown) implemented so maybe I am jumping too much ahead here. I didn't find it anywhere on road map as well, so your thoughts would be appreciated.\r\nI am running gogs as separate user and use setgid and setuid appropriately in upstart.\r\nI tried issuing:\r\nkill signal INT\r\nkill signal SIGINT\r\nkill signal SIGTERM\r\nkill signal SIGHUP\r\n...and they all kill gogs but leave following error in /var/syslog:\r\nJan 11 12:56:58 ubuntu kernel: [34278.257592] init: go-gogs main process (16561) terminated with status 2\r\n\r\nI see no errors in gogs logs beside syslog entry, and I am not sure if this is syslog complaining about unhanded exit or something else. For eg. when I try to use  kill signal with SIGQUIT i get go error dump (nothing in syslog), what is expected from SIGQUIT (Ctrl+\\).\r\n"}}