Only add --systemd-socket-activation flag on Linux
This commit is contained in:
parent
9afe691de2
commit
9f317f2638
|
@ -346,6 +346,9 @@ let retry_connections =
|
|||
Arg.(value & opt int 0 & info [ "retry-connections" ] ~doc)
|
||||
|
||||
let systemd_socket_activation =
|
||||
match Lazy.force Vmm_unix.uname with
|
||||
| FreeBSD -> Term.const false
|
||||
| Linux ->
|
||||
let doc = "Pass this flag when systemd socket activation is being used" in
|
||||
Arg.(value & flag & info [ "systemd-socket-activation" ] ~doc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue