aiccu init.d script will race dhclient (upstart issue?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aiccu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: aiccu
aiccu comes with a SysV-style init script. In the dark ages before upstart (and before NetworkManager?) this worked fine with a link from /etc/rc2.
Observe this snippet of syslog produced at boot (Hardy / 8.04):
Apr 26 22:43:40 badger NetworkManager: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
Apr 26 22:43:40 badger NetworkManager: <info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
Apr 26 22:43:40 badger NetworkManager: <info> Activation (eth1) Stage 2 of 5 (Device Configure) successful.
Apr 26 22:43:40 badger NetworkManager: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 26 22:43:40 badger NetworkManager: <info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
Apr 26 22:43:40 badger NetworkManager: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
Apr 26 22:43:41 badger anacron[6503]: Anacron 2.3 started on 2008-04-26
Apr 26 22:43:41 badger anacron[6503]: Normal exit (0 jobs run)
Apr 26 22:43:41 badger NetworkManager: <info> Activation (eth1) Beginning DHCP
transaction.
Apr 26 22:43:41 badger NetworkManager: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
Apr 26 22:43:41 badger NetworkManager: <info> DHCP daemon state is now 12 (succ
essfully started) for interface eth1
Apr 26 22:43:42 badger /usr/sbin/
Apr 26 22:43:42 badger /usr/sbin/
Apr 26 22:43:42 badger /usr/sbin/
Apr 26 22:43:43 badger NetworkManager: <info> DHCP daemon state is now 1 (starting) for interface eth1
Apr 26 22:43:43 badger kernel: [ 51.267594] NET: Registered protocol family 17Apr 26 22:43:45 badger kernel: [ 52.114297] IPv6 over IPv4 tunneling driver
Apr 26 22:43:45 badger kernel: [ 52.114565] sit0: Disabled Privacy Extensions
Apr 26 22:43:45 badger kernel: [ 52.147518] tun: Universal TUN/TAP device driver, 1.6
Apr 26 22:43:45 badger kernel: [ 52.147523] tun: (C) 1999-2004 Max Krasnyansky <email address hidden>
Apr 26 22:43:45 badger aiccu: Couldn't resolve host tic.sixxs.net, service 3874
Apr 26 22:43:45 badger aiccu: Couldn't connect to the TIC server tic.sixxs.net
Apr 26 22:43:45 badger aiccu: Couldn't retrieve first tunnel for the above reason, aborting
Apr 26 22:43:46 badger kernel: [ 52.783534] hda-intel: Invalid position buffer, using LPIB read method instead.
Apr 26 22:43:47 badger dhclient: DHCPREQUEST of 172.16.1.33 on eth1 to 255.255.255.255 port 67
Apr 26 22:43:47 badger dhclient: DHCPACK of 172.16.1.33 from 172.16.0.1
Apr 26 22:43:47 badger avahi-daemon[5935]: Joining mDNS multicast group on inter
face eth1.IPv4 with address 172.16.1.33.
Apr 26 22:43:47 badger avahi-daemon[5935]: New relevant interface eth1.IPv4 for mDNS.
Apr 26 22:43:47 badger avahi-daemon[5935]: Registering new address record for 172.16.1.33 on eth1.IPv4.
Apr 26 22:43:47 badger NetworkManager: <info> DHCP daemon state is now 4 (reboot) for interface eth1
and aiccu.conf:
protocol tic
server tic.sixxs.net
username XXXXXXXXX
password XXXXXXXX
ipv6_interface sixxs
tunnel_id TXXXXX
verbose true
daemonize true
automatic true
requiretls false
When I have a moment I'll figure out an upstart script for it, this is just to document the issue.
Related branches
Changed in aiccu (Ubuntu): | |
status: | Fix Released → Triaged |
Same issue here. if-up.d/ aiccu: if-up.d/ aiccu
Workaround:
disable aiccu rc?.d-links: "update-rc.d -f aiccu remove" (do NOT delete /etc/init.d/aiccu)
create a shell script /etc/network/
--
#!/bin/bash
/etc/init.d/aiccu start
--
chmod a+x /etc/network/
the same for /etc/network/ if-down. d/aiccu - just replace "aiccu start" by "aiccu stop"