manpage is wrong about exit-hook script.

Bug #53024 reported by moof
6
Affects Status Importance Assigned to Milestone
Ubuntu Server papercuts
Fix Released
Wishlist
Dustin Kirkland 
dhcp3 (Ubuntu)
Fix Released
Low
nfm
isc-dhcp (Debian)
Fix Released
Unknown

Bug Description

Binary package hint: dhcp3-client

dhclient-script(8) claims that:

On after defining the make_resolv_conf function, the client script checks for the presence of an executable /etc/dhclient-enter-hooks script

However, this is utterly wrong with the ubuntu setup; it actually executes any and all scripts in /etc/dhcp3/dhclient-exit-hooks.d/.

The manpages should be rewritten to use the directory and not the single script name; I imagine the same thing needs to be done for the enter scripts, too.

Related branches

Revision history for this message
Martin Pitt (pitti) wrote :

It's not really wrong, /etc/dhclient-enter-hooks is really executed if present. However, /etc/dhcp3/dhclient-exit-hooks.d/* scripts are *also* executed, and putting scripts there is preferred over a single monolithic one. So the documentation should just be clarified.

Changed in dhcp3:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Revision history for this message
nfm (nfm) wrote :

I've patched client/dhclient-script.8 to reflect the invocation of scripts in /etc/dhclient-enter-hooks.d/ and /etc.dhclient-exit-hooks.d/.

Changed in dhcp3 (Ubuntu):
assignee: nobody → forums-nfm
nfm (nfm)
Changed in dhcp3 (Ubuntu):
status: Confirmed → In Progress
Changed in server-papercuts:
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Wishlist
status: New → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
milestone: none → maverick-alpha-3
Changed in server-papercuts:
status: Triaged → In Progress
Changed in server-papercuts:
status: In Progress → Fix Committed
Changed in dhcp3 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dhcp3 - 3.1.3-2ubuntu5

---------------
dhcp3 (3.1.3-2ubuntu5) maverick; urgency=low

  * debian/patches/fix_exit_hook_doc_manpage.diff: fix LP: #53024,
    Modified client/dhclient-script.8 manpage to include information about
    the script folders /etc/dhcp3/dhclient-enter-hooks.d and
    /etc/dhcp3/dhclient-enter-hooks.d.
 -- Dustin Kirkland <email address hidden> Tue, 27 Jul 2010 15:55:09 -0400

Changed in dhcp3 (Ubuntu):
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in server-papercuts:
status: Fix Committed → Fix Released
Changed in isc-dhcp (Debian):
status: Unknown → New
Changed in isc-dhcp (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.