this adds the protocol registry. we also extend the systemd unit setup to allow adding new protocols without much fussing, and we move deamon instances into protocol-dependent scopes. this will make monitoring or resource limiting of individual protocol daemon instances much easier. Change-Id: Ic9da08eb074868b6e57385075c5502b081e8461f
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
[Unit]
|
|
Description=Lix Daemon Socket (@desc@)
|
|
Before=multi-user.target
|
|
Conflicts=nix-daemon.service
|
|
RequiresMountsFor=@storedir@
|
|
ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket
|
|
|
|
[Socket]
|
|
ListenStream=@localstatedir@/nix/daemon-socket/@path@
|
|
FileDescriptorName=@protocol@
|
|
Accept=yes
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|