Ubuntu natty Proftpd start fails at boot time when using MasqueradeAddress and Network-manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
proftpd-dfsg (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since latest kernel upgrade off ubuntu natty 11.04. proftpd start at boot failed with message : - Fatal: MasqueradeAddress: unable to resolve "xxxxxxx.xxx.cx" on line 177 of '/etc/proftpd/
I use network-manager to configure the interface. (it's easy with the applet to see your network status) .
When configure the proftpd without MasqueradeAddress it does start fine.
This all occur on my latest pc with intel core duo E8600 2 X 3,33 Ghz, and raptor hd's.
On my older pc amd64 athlon x2 dual core standard hd's with same ubuntu natty same configuration no problem. proftpd start always at boot time.
I figured out that with a fast pc proftpd starts whiles the network is not fully up when working trough network manager. Which causes a start failure as it cannot resolve the MasqueradeAddress yet.
I tried to give it the highest possible start number into runlevel 2,3,4,5 . But still the same problem. When I configured my network adapter trough /network/interfaces no problem proftpd started well.(But I like to have the network status with the nm-applet) With inetd also no problem but I do not want a pid for each session.
I do now found out a solution (that's why a fill a bug repport it would be nice to include this into further ubuntu versions)
I first removed the standard upstart with update-rc.d -f proftpd remove.
Created an upstart conf into /etc/init
named proftpd.conf
# Proftpd
#Use this instead of standard(old) rc.d When using network manager
#and dns masquer address Otherwise proftp start may fail due to no dns lookup avbl yet
#during boottime. With this proftpd will only start when network device is up
#
description "proftpd"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on stopping dbus
exec /etc/init.d/proftpd start
Now proftpd does start fine again at boot time. And is also avbl without local login.
tags: | added: ubuntu upstart |
summary: |
- Ubuntu natty Proftpd start fails at boot time + Ubuntu natty Proftpd start fails at boot time when using + MasqueradeAddressMasqueradeAddress |
summary: |
Ubuntu natty Proftpd start fails at boot time when using - MasqueradeAddressMasqueradeAddress + MasqueradeAddress and Network-manager |
I changed the proftpf.conf into /etc/init A bit more logical now
I do not now if one of the developpers just saw this message Yet.
Here startup proftp conf which work's very good on ubuntu natty while using network manager on fast pc
# Proftpd
#Use this instead of standard(old) rc.d When using network manager
#and dns masquer address Otherwise proftp start may fail due to no dns lookup avbl yet
#during boottime. With this proftpd will only start when network device is up
#
description "proftpd"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]
expect fork
respawn
pre-start script
mkdir -p /var/run/proftpd
end script
script
exec proftpd -c /etc/proftpd/ proftpd. conf
end script
I put the prestart to make the /var/run/proftpd map. Currently on natty it is not needed as the proftpd files are into
/var/run map . But I guess that this is just a small thing which was done wrong at compile time from the proftpd package in ubuntu self because the basic included proftpd.conf file mentions /var/run/proftpd for control purposes. (which i changed by me) .
I also used expect fork so that we see the process pid from proftpd with initctl list command.
exctract initctl list
proftpd start/running, process 1949