Look up systemctl from $PATH for user session checks by K900 · Pull Request #13157 · microsoft/WSL
This is already done in other instances where init calls systemctl, and we rely on init to find systemctl in PATH on NixOS, as we don't (really) have a /usr.
Summary of the Pull Request
PR Checklist
- Closes: Link to issue #xxx
- Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
- Tests: Added/updated if needed and all pass
- Localization: All end user facing strings can be localized
- Dev docs: Added/updated if needed
- Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx