]> git.proxmox.com Git - mirror_lxc.git/commit
hooks: dhclient hook improvements
authorJonathan Calmels <jcalmels@nvidia.com>
Fri, 8 Dec 2017 06:04:36 +0000 (22:04 -0800)
committerJonathan Calmels <jcalmels@nvidia.com>
Tue, 19 Dec 2017 23:18:28 +0000 (15:18 -0800)
commit84bf5645ed0b0c4380ca0a05c148e4c833d1383c
treed160b6c8c47d0d38e93e0bf96dc4f2b91da983c2
parent90f20db15fdfd222a80d661d0698e39584ad7383
hooks: dhclient hook improvements

- Merge dhclient-start and dhclient-stop into a single hook.
- Wait for a lease before returning from the hook.
- Generate a logfile when LXC log level is either DEBUG or TRACE.
- Rely on namespace file descriptors for the stop hook.
- Use settings from /<sysconf>/lxc/dhclient.conf if available.
- Attempt to cleanup if dhclient fails to shutdown properly.

Signed-off-by: Jonathan Calmels <jcalmels@nvidia.com>
.gitignore
configure.ac
hooks/Makefile.am
hooks/dhclient-start.in [deleted file]
hooks/dhclient-stop.in [deleted file]
hooks/dhclient.in [new file with mode: 0755]