{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/4410","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/4410/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/4410/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/4410/events","html_url":"https://github.com/systemd/systemd/issues/4410","id":184061294,"number":4410,"title":"systemd.service(5) does not fully document dependencies implied by Sockets=","user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/documentation","name":"documentation","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-19T20:09:03Z","updated_at":"2016-10-19T20:15:20Z","closed_at":null,"body":"### Submission type\r\n\r\n  - [ ] Bug report\r\n  - [x] Request for enhancement (RFE)\r\n\r\n### systemd version the issue has been seen with\r\n\r\n> 231\r\n\r\n### Used distribution\r\n\r\n> Arch Linux\r\n\r\nSocket units listed in a service unit’s `Sockets=` directive gain `Wants=` and `After=` dependencies on those sockets:\r\n```c\r\n// load-fragment.c, config_parse_service_sockets, line 1739 as of 0afc6d4\r\nr = unit_add_two_dependencies_by_name(UNIT(s), UNIT_WANTS, UNIT_AFTER, k, NULL, true);\r\nif (r < 0)\r\n        log_syntax(unit, LOG_ERR, filename, line, r, \"Failed to add dependency on %s, ignoring: %m\", k);\r\n```\r\n\r\nThe `Wants=` dependency is not documented in `systemd.service(5)`. The `After=` kinda is, with the following sentence in the Automatic Dependencies section:\r\n\r\n> Socket activated service are automatically ordered after their activated .socket units via an automatic `After=` dependency.\r\n\r\nHowever, I think it could be phrased better, since in the `Sockets=` case, it’s possible that the service pulls in the socket, which I wouldn’t call “socket activated”."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/254927499","html_url":"https://github.com/systemd/systemd/issues/4410#issuecomment-254927499","issue_url":"https://api.github.com/repos/systemd/systemd/issues/4410","id":254927499,"user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T20:15:20Z","updated_at":"2016-10-19T20:15:20Z","body":"I wasn’t sure if I could find a good way to phrase the improved version myself, but I think I have something, so pull request imminent :)"}}
{"actor":{"display_login":"lucaswerkmeister"}}