need to change the init script with update-rc.d

Bug #554592 reported by esver
10
This bug affects 2 people
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+dfsg-1ubuntu1
  Candidat : 1:2.6.23+dfsg-1ubuntu1
 Table de version :
 *** 1:2.6.23+dfsg-1ubuntu1 0
        500 http://fr.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

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/pluto/pluto.pid:
ipsec_setup: Starting Openswan IPsec U2.6.23/K2.6.32-19-generic-pae...

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.

Revision history for this message
esver (esver) wrote :

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.

Revision history for this message
jedioetzi (jedioetzi) wrote :

same in maverick:
sudo 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
sudo 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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.