Add Unit 'socket'
icanhazstring opened this issue · 3 comments
icanhazstring commented
Add Unit 'socket'
peter279k commented
@icanhazstring , Could you explain this issue about more details?
Thanks.
icanhazstring commented
Hi @peter279k sure thing.
First of all, the Socket
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 Socket
.
In the most simple case, you only need to provide the Socket
class implenting the UnitInterface
extending AbstractUnit
. The class should provide the correct suffix.
For more information about a Unit or Socket see systemd documentation:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
https://www.freedesktop.org/software/systemd/man/systemd.socket.html
icanhazstring commented
Closed with #27