daemon default consistancy - dhcpd
Carl Karsten
carl at personnelware.com
Tue Apr 5 12:27:51 CDT 2005
Carl Karsten wrote:
> apt-get install openssh-server
> installs the server, starts it, and sets it to start on boot.
>
> apt-get install tftpd-hpa
> sets up /etc/default/tftpd-hpa with RUN_DAEMON="no", so that it won't
> start now or on boot.
>
> Shouldn't all things like this default to enabled?
>
Ok, I found one that I think shouldn't start by default because it will
interfere with other dhcp servers on the lan.
Not sure what is expected here because it tires to start, then fails.
root at shaz:/var/www # apt-get install dhcp3-server
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
dhcp3-server
0 upgraded, 1 newly installed, 0 to remove and 164 not upgraded.
Need to get 510kB of archives.
After unpacking 1090kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com hoary/main dhcp3-server 3.0.1-1ubuntu4
[510kB]
Fetched 510kB in 4s (115kB/s)
Preconfiguring packages ...
Selecting previously deselected package dhcp3-server.
(Reading database ... 58744 files and directories currently installed.)
Unpacking dhcp3-server (from .../dhcp3-server_3.0.1-1ubuntu4_i386.deb) ...
Setting up dhcp3-server (3.0.1-1ubuntu4) ...
Generating /etc/default/dhcp3-server...
Starting DHCP server: dhcpd3 failed to start - check syslog for diagnostics.
invoke-rc.d: initscript dhcp3-server, action "start" failed.
root at shaz:/var/www # grep dhcpd /var/log/syslog
Apr 5 12:07:18 localhost dhcpd: Internet Systems Consortium DHCP Server
V3.0.1
Apr 5 12:07:18 localhost dhcpd: Copyright 2004 Internet Systems Consortium.
Apr 5 12:07:18 localhost dhcpd: All rights reserved.
Apr 5 12:07:18 localhost dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
Apr 5 12:07:18 localhost dhcpd: Wrote 0 leases to leases file.
Apr 5 12:07:18 localhost dhcpd:
Apr 5 12:07:18 localhost dhcpd: No subnet declaration for eth0
(192.168.1.119).
Apr 5 12:07:18 localhost dhcpd: ** Ignoring requests on eth0. If this
is not what
Apr 5 12:07:18 localhost dhcpd: you want, please write a subnet
declaration
Apr 5 12:07:18 localhost dhcpd: in your dhcpd.conf file for the
network segment
Apr 5 12:07:18 localhost dhcpd: to which interface eth0 is attached. **
Apr 5 12:07:18 localhost dhcpd:
Apr 5 12:07:18 localhost dhcpd:
Apr 5 12:07:18 localhost dhcpd: Not configured to listen on any interfaces!
During the install it asked about interfaces "leave blank to
auto-detect" - I started to answer it, then realized there was only one
nic in the box, deleted it, hit OK. That might have had something to do
with something. I think there was something about the config needing to
be setup, which surprised me when it next tried to start.
I wanted to do that step again, but apt-get remove dhcp3-server/apt-get;
rm /etc/dhcp3/dhcpd.conf; install dhcp3-server didn't present me with
any dialogs. Other than reinstalling hoary (which I am going to do
anyway) is there a standard way to tell apt to remove "everything" so
that the next install will not know of the previous?
Carl K
More information about the ubuntu-devel
mailing list