Skip to content

Commit

Permalink
Document systemd socket activation
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Sep 20, 2021
1 parent 809874c commit 7639578
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/nix/daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,18 @@ management framework such as `systemd`.

Note that this daemon does not fork into the background.

# Systemd socket activation

`nix daemon` supports systemd socket-based activation using the
`nix-daemon.socket` unit in the Nix distribution. It supports
listening on multiple addresses; for example, the following stanza in
`nix-daemon.socket` makes the daemon listen both on a Unix domain
socket and on port 1234:

```
[Socket]
ListenStream=/nix/var/nix/daemon-socket/socket
ListenStream=1234
```

)""

0 comments on commit 7639578

Please sign in to comment.