strongSwan 5 not autostarting on Debian

Did you follow the guide how to install strongSwan 5 on Debian Wheezy? You may have noticed that strongSwan doesn’t automatically start when you reboot the server (tested with 5.1.0-3~bpo70+1). The fix requires a small modification to /etc/init.d/ipsec.

Change:

# Provides:          ipsec
# Required-Start:    $network $remote_fs
# Required-Stop:     $network $remote_fs

To:

# Provides:          ipsec
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog

Then reinitialize the boot sequence for ipsec:

$ insserv -r ipsec
$ insserv ipsec

3 thoughts on “strongSwan 5 not autostarting on Debian

  1. I’ve just hit upon the situation, strongSwan doesn’t start when the system boots.
    I’m guessing this is a problem related to the Debian packaging.
    I’m wondering if you have submitted a bug report for this ?

    • Hi Torbjørn,

      I was going to, but first wanted to look at the actual package to see what might have been wrong. Then again it seemed to have been fixed in the latest backport, at least when I tried it last.

Leave a Reply

Your email address will not be published.