John, I had a problem with the DHCP not starting up when using Network Manager to set my static IP. Usually people use the /etc/network/interfaces file to get around this but I wanted to use Network Manager so I had access to VPN connections and such.
I found if I put my DHCP & tftp startup scripts into /etc/network/if-up.d then they start when my network is connected through Network Manager. Here is my script: /etc/network/if-up.d/dhcp3-server #! /bin/sh # Kick DHCP server when interface comes up (for Ubuntu, probably Debian too) # Workaround for <https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/392826> # Bugs: # - Only works when interfaces for dhcpd are explicitly listed. DHCP_IF=/etc/default/isc-dhcp-server DHCP_INIT=/etc/init.d/isc-dhcp-server [ -f "$DHCP_IF" -a -f "$DHCP_INIT" ] || exit 0 . "$DHCP_IF" if [ "x$INTERFACES" = x ]; then # Don't know which interfaces it manages, always restart restart_dhcp=1 else restart_dhcp=0 for iface in "$INTERFACES"; do if [ "$iface" = "$IFACE" ]; then restart_dhcp=1 fi done fi if [ "$restart_dhcp" = "1" ]; then "$DHCP_INIT" restart sleep 10 /etc/init.d/tftp-hpa restart fi Make executable. Now test by disconnecting & re-connecting. from Michael On 10/08/12 05:59, John Hupp wrote: > > Thanks for that, Michael. > > Actually, further testing on this setup shows that it's not just TFTP > that sometimes fails. I just had a boot attempt where DHCP didn't > work, so it never got as far as TFTP. > > Perhaps more experience will teach whether these problems are mostly > confined to limited circumstances or more widespread and common. A > search on the problem did not turn up a great many cases, so perhaps > the problem is rare. > > On 8/8/2012 7:03 PM, Michael Pope wrote: >> On Ubuntu 12.04 I found that I had to restart the tftp service even >> though it was running. Then I put it into a script like so: >> >> Create a file /etc/init.d/tftpd-hpa2 with >> #!/bin/sh >> sleep 10 >> service tftpd-hpa restart >> >> $ sudo chmod +x /etc/init.d/tftpd-hpa2 >> $ sudo update-rc.d tftpd-hpa2 defaults >> >> It's a crude hack I know but it's a work around for now. >> >> from >> Michael >> >> On 09/08/12 08:35, John Hupp wrote: >>> Thanks for the first step, but service reports status: tftpd-hpa >>> start/running >>> >>> What next? >>> >>> On 8/8/2012 6:03 PM, Lachele Foley (Lists) wrote: >>>> Quick test: make sure the tftp daemon is running. >>>> >>>> :~$ sudo service tftpd-hpa status >>>> tftpd-hpa start/running, process 2866 >>>> >>>> If not, try starting it (change "status" to "start"). Sometimes with >>>> Ubuntu, I've found that services don't start the way I expect every >>>> time I boot. >>>> >>>> Since it got as far as it did, dhcp seems to be working. You just >>>> have to get tftp to push out an image. >>>> >>>> :-) Lachele >>>> >>>> On Wed, Aug 8, 2012 at 5:50 PM, John Hupp<l...@prpcompany.com> wrote: >>>>> I just built another Lubuntu 12.04 LTSP server on different hardware for >>>>> testing. >>>>> >>>>> The current terminal I'm testing with generates this boot error and then >>>>> stops: >>>>> >>>>> PXE-E32: TFTP open timeout >>>>> >>>>> This terminal boots fine on the first LTSP server I set up, which had more >>>>> modest hardware. >>>>> >>>>> How do I address this? >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Live Security Virtual Conference >>>>> Exclusive live event will cover all the ways today's security and >>>>> threat landscape has changed and how IT managers can respond. Discussions >>>>> will include endpoint security, mobile security and the latest in malware >>>>> threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>> _____________________________________________________________________ >>>>> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: >>>>> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss >>>>> For additional LTSP help, try #ltsp channel on irc.freenode.net >>>>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> >>> >>> _____________________________________________________________________ >>> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: >>> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss >>> For additional LTSP help, try #ltsp channel on irc.freenode.net >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _____________________________________________________________________ >> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: >> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss >> For additional LTSP help, try #ltsp channel on irc.freenode.net >> >> > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _____________________________________________________________________ > Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: > https://lists.sourceforge.net/lists/listinfo/ltsp-discuss > For additional LTSP help, try #ltsp channel on irc.freenode.net ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net