Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
tonyg
2y ago
0 comments
Share
Strange protocol. Why not pass a path to a
file
that should be `touch`d and/or written to, I wonder? Would avoid the complexity of sockets.
0 comments
default
newest
oldest
Bu9818
2y ago
Services may be in a different mount namespace from systemd for sandboxing or other reasons (also means you have to worry about filesystem permissions I suppose). Passing an fd from the parent (systemd) is a nice direct channel between the processes
NewJazz
2y ago
But systemd precisely doesn't pass an FD. If it did, you would just need to write() and close().
Bu9818
2y ago
Yeah I was wrong about that, I confused it with socket-activation passing. The systemd-side socket is available from the process.
j
/
k
navigate · click thread line to collapse