icanhazstring/systemctl-php

Add Unit 'socket'

icanhazstring opened this issue · 3 comments

Add Unit 'socket'

@icanhazstring , Could you explain this issue about more details?

Thanks.

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

Closed with #27