dhcp: add --pidfile option to DHCP client daemon

This commit is contained in:
Dan Williams
2017-05-26 23:48:29 -05:00
parent 7cda9af13f
commit a38dd5f7a0
3 changed files with 28 additions and 5 deletions

View File

@ -16,6 +16,9 @@ $ rm -f /run/cni/dhcp.sock
$ ./dhcp daemon
```
If given `-pidfile <path>` arguments after 'daemon', the dhcp plugin will write
its PID to the given file.
Alternatively, you can use systemd socket activation protocol.
Be sure that the .socket file uses /run/cni/dhcp.sock as the socket path.