feat(blahd): impl socket activation integration

This also allows arbitrary listening fd include UNIX domain sockets, via
environment variables as sd_listen_fds(3).
This commit is contained in:
oxalica 2024-09-11 13:14:06 -04:00
parent 87c8acd5b2
commit 98b2df2fdf
8 changed files with 206 additions and 13 deletions

View file

@ -65,6 +65,9 @@ rec {
"--package=blahctl"
];
# Intentionally omit the socket unit. It is trivial but
# highly configuration-specific. Users who want to use it almost
# always need customization.
postInstall = ''
mkdir -p $out/etc/systemd/system
substitute ./contrib/blahd.example.service $out/etc/systemd/system/blahd.service \