need to change the init script with update-rc.d
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openswan (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: openswan
Description: Ubuntu lucid (development branch)
Release: 10.04
openswan:
Installé : 1:2.6.23+
Candidat : 1:2.6.23+
Table de version :
*** 1:2.6.23+
500 http://
100 /var/lib/
Openswan doesn't start correctly at boot on ubuntu 9.04 and 10.04 (and debian lenny). It seems that it's the order of the boot script that is wrong : perhaps that openswan is starting before that the lan is up.
I've 2 solution : use the command "/etc/init.d/ipsec restart" manualy at each boot :
ipsec_setup: Stopping Openswan IPsec...
ipsec_setup: Removing orphaned /var/run/
ipsec_setup: Starting Openswan IPsec U2.6.23/
Or change the startup of openswan with this 2 commands :
update-rc.d -f ipsec remove :
Removing any system startup links for /etc/init.d/ipsec ...
/etc/rc0.d/K34ipsec
/etc/rc6.d/K34ipsec
/etc/rcS.d/S41ipsec
update-rc.d ipsec defaults
Adding system startup for /etc/init.d/ipsec ...
/etc/rc0.d/K20ipsec -> ../init.d/ipsec
/etc/rc1.d/K20ipsec -> ../init.d/ipsec
/etc/rc6.d/K20ipsec -> ../init.d/ipsec
/etc/rc2.d/S20ipsec -> ../init.d/ipsec
/etc/rc3.d/S20ipsec -> ../init.d/ipsec
/etc/rc4.d/S20ipsec -> ../init.d/ipsec
/etc/rc5.d/S20ipsec -> ../init.d/ipsec
This can be reproduced by just installing of openswan and search his pid after boot.
In ubuntu jaunty,
netbase 4.34 postinst script is :
update-rc.d networking start 40 S . start 35 0 6 .
and after,
netbase 4.35 postinst script is :
update-rc.d networking start 35 0 6 .
I think the line update-rc.d needs to be changed in the openswan package according to the new netbase package.