[systemd-devel] .service and .socket

Olaf van der Spek ml at vdspek.org
Tue Jan 1 12:46:16 UTC 2019


Hi,

AFAIK socket units require a separate file, which seems more complex
then it has to be.

1. Could sockets be specified directly in the .service file?
2. If not, could the .service file gain a default / implicit
dependency on the .socket file?

3. AFAIK Install.WantedBy doesn't have a default. Could it get a proper default?


xhp.service:
[Unit]
Requires=xhp.socket

[Install]
WantedBy=default.target

xhp.socket:
[Socket]
ListenStream=/run/xhp.socket


Greetings,

-- 
Olaf


More information about the systemd-devel mailing list