Add Unit 'device'
icanhazstring opened this issue · 1 comments
icanhazstring commented
First of all, the Device
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 Device
.
In the most simple case, you only need to provide the Device
class implenting the UnitInterface
extending AbstractUnit
. The class should provide the correct suffix.
For more information about a Unit or Device see systemd documentation:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
https://www.freedesktop.org/software/systemd/man/systemd.device.html
Also see PR #27 from @peter279k for reference.
RageZBla commented
I will start working on this issue 🙇