Skip to content

Commit

Permalink
Prevent race starting socket unit file
Browse files Browse the repository at this point in the history
FreeBind is recommended option when binding to a specific address:

```
For robustness reasons it is recommended to use this option whenever you bind a socket to a specific IP address
```

https://www.freedesktop.org/software/systemd/man/systemd.socket.html#FreeBind=

Fixes #66
  • Loading branch information
jovial authored Sep 16, 2022
1 parent 9edce18 commit 002ebcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/socket.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
[Socket]
ListenStream=
ListenStream={{ _libvirt_listen_stream }}
# FreeBind is recommended when listening on a specific address:
# https://www.freedesktop.org/software/systemd/man/systemd.socket.html#FreeBind=
FreeBind=true

0 comments on commit 002ebcf

Please sign in to comment.