Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unit 'target' #11

Closed
icanhazstring opened this issue Aug 15, 2017 · 0 comments · Fixed by #38
Closed

Add Unit 'target' #11

icanhazstring opened this issue Aug 15, 2017 · 0 comments · Fixed by #38

Comments

@icanhazstring
Copy link
Owner

icanhazstring commented Aug 15, 2017

First of all, the Target unit type should implement the UnitInterface similar to the Timer or Service.
Despite that everything, that is possible with a Timer should also be possible with a Target.

In the most simple case, you only need to provide the Target class implementing the UnitInterface extending AbstractUnit. The class should provide the correct suffix.

For more information about a Unit or Target see systemd documentation:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
https://www.freedesktop.org/software/systemd/man/systemd.target.html

Also see PR #27 from @peter279k for reference.

@icanhazstring icanhazstring modified the milestone: v1.0 Aug 15, 2017
peter279k added a commit to peter279k/systemctl-php that referenced this issue Nov 5, 2020
icanhazstring pushed a commit that referenced this issue Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant