5

I'm trying to disable OpenVPN from running at startup. I tried changed the setting for AUTOSTART in /etc/default/openvpn from all to none, but that didn't work.

How do I disable OpenVPN from running at startup?

Darth Vader
  • 4,218
  • 24
  • 47
  • 70
franck
  • 153
  • 1
  • 1
  • 4

1 Answers1

6

If you are using jessie, check:

systemctl list-units | grep vpn

You should be able to find the name of the service this way (wild guess: openvpn), then:

sudo systemctl disable openvpn

That won't stop it right now, but it should prevent it from starting next boot. You will still be able to start it manually via sudo systemctl start openvpn (and stop it with stop). If you want to re-enable it at boot, use reenable.

goldilocks
  • 60,325
  • 17
  • 117
  • 234