resolvconf update script should not produce error when main.cfg missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Fix Released
|
Medium
|
LaMont Jones |
Bug Description
Binary package hint: postfix
I'm using a 9.10 server installation. The following happens as postfix got installed as an indirect dependency of ubuntu-vm-builder. resolvconf has been installed manually.
When running ifup/ifdown the following errors are shown:
/usr/sbin/
cp: `/etc/resolv.conf' and `/etc/resolv.conf' are the same file
run-parts: /etc/resolvconf
run-parts: /etc/resolvconf
run-parts: /etc/network/
It is correct, that no /etc/postfix/
[ -x /usr/sbin/postconf ] || exit 0
to
[ -x /usr/sbin/postconf -a -e /etc/postfix/
Even better would be to also detect major postfix configuration problems by testing '/usr/sbin/postconf -h queue_directory' for empty result.
Related branches
Changed in postfix (Ubuntu): | |
assignee: | nobody → LaMont Jones (lamont) |
Changed in postfix (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in postfix (Ubuntu): | |
status: | Confirmed → Fix Committed |
I am running 64-bit Ubuntu 10.04 Desktop (in place upgrade from 09.10) on an 3.0 Ghz AMD Phenom II 945 Quad Core / 6 GB RAM, Network-Manager was not present prior to or after upgrading (intentionally). Networking is handled by a traditional interfaces file. Sometimes immediately following boot up, there is (at least temporarily) no dns name resolution and consequently no internet access until a sudo /etc/init. d/networking restart is performed, the output of which is as follows:
user@host:~$ sudo /etc/init. d/networking restart dhclient. eth0.pid with pid 2324 /www.isc. org/software/ dhcp/
[sudo] password for user:
* Reconfiguring network interfaces... There is already a pid file /var/run/
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/eth0/ 00:24:8c: 7e:ce:78 00:24:8c: 7e:ce:78 /www.isc. org/software/ dhcp/
Sending on LPF/eth0/
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.254 port 67
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/eth0/ 00:24:8c: 7e:ce:78 00:24:8c: 7e:ce:78 main.cf: No such file or directory /update- libc.d/ postfix exited with return code 1 /update. d/libc exited with return code 1
[ OK ]
Sending on LPF/eth0/
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of nn.nnn.nnn.nn from 192.168.1.254
DHCPREQUEST of nn.nnn.nnn.nn on eth0 to 255.255.255.255 port 67
DHCPACK of nn.nnn.nnn.nn from nn.nnn.nnn.nn
/usr/sbin/postconf: fatal: open /etc/postfix/
cp: `/etc/resolv.conf' and `/etc/resolv.conf' are the same file
run-parts: /etc/resolvconf
run-parts: /etc/resolvconf
bound to nn.nnn.nnn.nn -- renewal in 238 seconds.
ssh stop/waiting
ssh start/running, process 3119
ssh stop/waiting
ssh start/running, process 3177
user@host:~$
Also, FWIW, I believe that dnsmasq and dhcp3-server are running