# dhclient -1 -v virbr0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/virbr0/52:54:00:05:e1:f3
Sending on LPF/virbr0/52:54:00:05:e1:f3
Sending on Socket/fallback
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 3 (xid=0xe7ef8212)
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 1 (xid=0xe7ef8212)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
# ps awxfu|grep dh.*virbr
root 16796 0.0 0.0 8868 792 pts/36 S+ 05:31 0:00 | | \_ grep dh.*virbr
root 16772 0.0 0.0 10220 4368 ? Ss 05:30 0:00 \_ dhclient -1 -v virbr0
#
Not only does it not return the documented exit code, it also backgrounds itself and continues polling. So the -1 option seems to be completely broken.
I've looked at the source package, and this is due to debian/patches/onetry_retry_after_initial_success. The addition of this patch isn't documented in the changelog, there are no referenced bugs, and the patch description doesn't make sense to me; assigning to stgraber, who is listed as the author of this patch.
Here is the behavior on either 14.04 or 16.04:
# dhclient -1 -v virbr0 /www.isc. org/software/ dhcp/
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/virbr0/ 52:54:00: 05:e1:f3 52:54:00: 05:e1:f3
Sending on LPF/virbr0/
Sending on Socket/fallback
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 3 (xid=0xe7ef8212)
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 1 (xid=0xe7ef8212)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
# ps awxfu|grep dh.*virbr
root 16796 0.0 0.0 8868 792 pts/36 S+ 05:31 0:00 | | \_ grep dh.*virbr
root 16772 0.0 0.0 10220 4368 ? Ss 05:30 0:00 \_ dhclient -1 -v virbr0
#
Not only does it not return the documented exit code, it also backgrounds itself and continues polling. So the -1 option seems to be completely broken.
I've looked at the source package, and this is due to debian/ patches/ onetry_ retry_after_ initial_ success. The addition of this patch isn't documented in the changelog, there are no referenced bugs, and the patch description doesn't make sense to me; assigning to stgraber, who is listed as the author of this patch.