{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/87","labels_url":"https://api.github.com/repos/systemd/systemd/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/87/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/87/events","html_url":"https://github.com/systemd/systemd/issues/87","id":85951567,"number":87,"title":"'PropertiesChanged' not fired when unit finishes","user":{"login":"SimonPe","id":595410,"avatar_url":"https://avatars.githubusercontent.com/u/595410?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonPe","html_url":"https://github.com/SimonPe","followers_url":"https://api.github.com/users/SimonPe/followers","following_url":"https://api.github.com/users/SimonPe/following{/other_user}","gists_url":"https://api.github.com/users/SimonPe/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonPe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonPe/subscriptions","organizations_url":"https://api.github.com/users/SimonPe/orgs","repos_url":"https://api.github.com/users/SimonPe/repos","events_url":"https://api.github.com/users/SimonPe/events{/privacy}","received_events_url":"https://api.github.com/users/SimonPe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-07T21:54:40Z","updated_at":"2015-06-08T17:31:13Z","closed_at":"2015-06-08T17:31:13Z","body":"I have a simple unit, a program starts it via the bus, and then waits for it to end.\r\n(the current unit is just /bin/sleep 10)\r\n\r\nThe problem is  that when the unit finishes, the unit gets removed before the ActiveState is set to inactive, making my program unable to reliably detect the finishing of the unit trough PropertiesChanged."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/110084602","html_url":"https://github.com/systemd/systemd/issues/87#issuecomment-110084602","issue_url":"https://api.github.com/repos/systemd/systemd/issues/87","id":110084602,"user":{"login":"mezcalero","id":2130732,"avatar_url":"https://avatars.githubusercontent.com/u/2130732?v=3","gravatar_id":"","url":"https://api.github.com/users/mezcalero","html_url":"https://github.com/mezcalero","followers_url":"https://api.github.com/users/mezcalero/followers","following_url":"https://api.github.com/users/mezcalero/following{/other_user}","gists_url":"https://api.github.com/users/mezcalero/gists{/gist_id}","starred_url":"https://api.github.com/users/mezcalero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezcalero/subscriptions","organizations_url":"https://api.github.com/users/mezcalero/orgs","repos_url":"https://api.github.com/users/mezcalero/repos","events_url":"https://api.github.com/users/mezcalero/events{/privacy}","received_events_url":"https://api.github.com/users/mezcalero/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T17:31:13Z","updated_at":"2015-06-08T17:31:13Z","body":"Well, if you don't want the unit to be GC'ed that quickly, consider using RemainAfterExit= so that it stays around after exiting, and then stop it explicitly when you really want it to go away."}}