DHCP Server problem with Ubuntu 12.10 Quantal

Webmin
2012-11-06
2013-07-30
  • Nikki Locke
    Nikki Locke
    2012-11-06

    I have just installed Ubuntu 12.10 Quantal on a new server, with Webmin.
    I used the standard Webmin install instructions, which involve adding the following to /etc/apt-sources.list:

    deb http://download.webmin.com/download/repository sarge contrib
    deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

    The DHCP Server option always appears in Un-used modules, even after I have clicked on the link to install DHCP Server. (apt-get shows the module as already installed.)

    I rooted around in all the documentation I could find, and decided the module config was wrong.

    I altered the following fields:

    Config file: /etc/dhcp/dhcpd.conf
    Executable: /usr/sbin/dhcpd
    Lease file: /var/lib/dhcp/dhcpd.leases

    Now the server works (if I give it a correct configuration).

    However, if I give it an invalid configuration, starting it gives the text:

    Rather than invoking init scripts through /etc/init.d, use the service(8)
    utility, e.g. service isc-dhcp-server start
    Since the script you are attempting to invoke has been converted to an
    Upstart job, you may also use the start(8) utility, e.g. start isc-dhcp-server

    rather than any useful error messages from the server. I eventually found these messages in /var/log/upstart/isc-dhcp-server.log.

    Is this a bug, or have I somehow managed to get a weird Debian configuration?

     
  • Rewar Diaz
    Rewar Diaz
    2013-01-19

    Hi Nik,

    I know I'm late but have you found a solution for this matter?

    Ubuntu 12.4  64bit

    Thanks

     
  • Nikki Locke
    Nikki Locke
    2013-01-20

    Nope - I just abandoned Ubuntu altogether.

     
  • Andre J.
    Andre J.
    2013-07-30

    I'm sorry for that.

    The solution (for everyone, who would read this post) is to use the command "service isc-dhcp-server start/stop/restart" instead of "/etc/init.d/isc-dhcp-server start...".

    Greetings