{"action":"created","issue":{"url":"https://api.github.com/repos/mopidy/mopidy/issues/1435","repository_url":"https://api.github.com/repos/mopidy/mopidy","labels_url":"https://api.github.com/repos/mopidy/mopidy/issues/1435/labels{/name}","comments_url":"https://api.github.com/repos/mopidy/mopidy/issues/1435/comments","events_url":"https://api.github.com/repos/mopidy/mopidy/issues/1435/events","html_url":"https://github.com/mopidy/mopidy/issues/1435","id":132489401,"number":1435,"title":"Can' stop mopidy","user":{"login":"dublok","id":15618662,"avatar_url":"https://avatars.githubusercontent.com/u/15618662?v=3","gravatar_id":"","url":"https://api.github.com/users/dublok","html_url":"https://github.com/dublok","followers_url":"https://api.github.com/users/dublok/followers","following_url":"https://api.github.com/users/dublok/following{/other_user}","gists_url":"https://api.github.com/users/dublok/gists{/gist_id}","starred_url":"https://api.github.com/users/dublok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dublok/subscriptions","organizations_url":"https://api.github.com/users/dublok/orgs","repos_url":"https://api.github.com/users/dublok/repos","events_url":"https://api.github.com/users/dublok/events{/privacy}","received_events_url":"https://api.github.com/users/dublok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mopidy/mopidy/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mopidy/mopidy/milestones/45","html_url":"https://github.com/mopidy/mopidy/milestones/v2.0%20-%20Gapless%20and%20GStreamer%201.x","labels_url":"https://api.github.com/repos/mopidy/mopidy/milestones/45/labels","id":1084268,"number":45,"title":"v2.0 - Gapless and GStreamer 1.x","description":"\r\n\r\n<!---\r\n@huboard:{\"order\":32.1875}\r\n-->\r\n","creator":{"login":"adamcik","id":82534,"avatar_url":"https://avatars.githubusercontent.com/u/82534?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcik","html_url":"https://github.com/adamcik","followers_url":"https://api.github.com/users/adamcik/followers","following_url":"https://api.github.com/users/adamcik/following{/other_user}","gists_url":"https://api.github.com/users/adamcik/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcik/subscriptions","organizations_url":"https://api.github.com/users/adamcik/orgs","repos_url":"https://api.github.com/users/adamcik/repos","events_url":"https://api.github.com/users/adamcik/events{/privacy}","received_events_url":"https://api.github.com/users/adamcik/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":65,"state":"open","created_at":"2015-04-26T22:08:42Z","updated_at":"2016-02-10T19:01:50Z","due_on":"2016-02-10T23:00:00Z","closed_at":null},"comments":8,"created_at":"2016-02-09T18:04:48Z","updated_at":"2016-02-10T19:29:24Z","closed_at":null,"body":"V2.0 c4da2c2:\r\nA  `sudo service mopidy stop` does not stop mopidy. At last it stops after a timeout.\r\n\r\nEnabled extensions: mpd, dleyna, http, stream, alsamixer, m3u, local-images, softwaremixer, file, musicbox_webclient, tidal, local, local-sqlite\r\n\r\nTarget: RPi 2, raspbian\r\n\r\n[Edit: removed the `<ctrl-c>`]"},"comment":{"url":"https://api.github.com/repos/mopidy/mopidy/issues/comments/182540432","html_url":"https://github.com/mopidy/mopidy/issues/1435#issuecomment-182540432","issue_url":"https://api.github.com/repos/mopidy/mopidy/issues/1435","id":182540432,"user":{"login":"dublok","id":15618662,"avatar_url":"https://avatars.githubusercontent.com/u/15618662?v=3","gravatar_id":"","url":"https://api.github.com/users/dublok","html_url":"https://github.com/dublok","followers_url":"https://api.github.com/users/dublok/followers","following_url":"https://api.github.com/users/dublok/following{/other_user}","gists_url":"https://api.github.com/users/dublok/gists{/gist_id}","starred_url":"https://api.github.com/users/dublok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dublok/subscriptions","organizations_url":"https://api.github.com/users/dublok/orgs","repos_url":"https://api.github.com/users/dublok/repos","events_url":"https://api.github.com/users/dublok/events{/privacy}","received_events_url":"https://api.github.com/users/dublok/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T19:29:24Z","updated_at":"2016-02-10T19:29:24Z","body":"`thread.interrupt_main()` seems not to work anymore.\r\nUsing `os.kill(os.getpid(), signal.SIGINT)` instead stops mopidy.\r\n\r\nI could prepare a PR if the solution is OK.\r\n\r\n```\r\ndef exit_process():\r\n    logger.debug('Interrupting main...')\r\n    os.kill(os.getpid(), signal.SIGINT)\r\n    logger.debug('Interrupted main')\r\n```"}}