typo in /usr/lib/pm-utils/sleep.d/95dhcp3-server prevents it operating

Bug #306703 reported by Daniel Pittman
4
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

This may be a duplicate of bug #242020, but that isn't entirely clear to me that the original reporter has the same root cause as what I have discovered. The symptoms I have encountered are more or less identical, and restarting dhcp3-server manually does resolve the problem where my DHCP server will not issue a lease until restarted.

(I use a number of VM systems for development purposes, which have DHCP assigned IP information, for what it is worth.)

The dhcp3-server package includes the script /usr/lib/pm-utils/sleep.d/95dhcp3-server, which is designed to stop the server before suspend and to restart it afterwards.

This script has a typo which renders it ineffective: line 3 is 'case "" in', where it should be 'case "$1" in'

The consequence of this is that the empty string, which triggers the script to do nothing, is always considered to be the running case. The resolution would be to correct that typo, which should then stop and start the DHCP server as expected.

Regards,
        Daniel

Description: Ubuntu 8.04.1
Release: 8.04

dhcp3-server:
  Installed: 3.0.6.dfsg-1ubuntu9
  Candidate: 3.0.6.dfsg-1ubuntu9
  Version table:
 *** 3.0.6.dfsg-1ubuntu9 0
        500 http://mirror.internode.on.net hardy/main Packages
        500 http://mirrors.kernel.org hardy/main Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: amd64
Date: Wed Dec 10 10:40:25 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: dhcp3-server 3.0.6.dfsg-1ubuntu9 [modified: usr/sbin/dhcpd3]
PackageArchitecture: amd64
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/games
 LANG=en_AU.UTF-8
SourcePackage: dhcp3
Uname: Linux 2.6.24-22-openvz x86_64

Tags: apport-bug
Revision history for this message
Daniel Pittman (daniel-rimspace) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in dhcp3 (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Pittman (daniel-rimspace) wrote :

No, I can't; the sort of response I got here had me give up on Ubuntu quite some time ago and head back to Debian.

This bug report includes a detailed analysis and the explicit solution to the problem, which is a faulty script.
Having y'all ignore that for, oh, nine months, then ask me to redo the diagnosis is pretty insulting, really.

Perhaps you can glance at the script that is explicitly named, go to the line that is explicitly named, and check to see if the explicitly named bug is still present yourself, eh?

Chuck Short (zulcss)
Changed in dhcp3 (Ubuntu):
status: Incomplete → Won't Fix
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.