I am using Ubuntu 12.04.2 LTS, 64-bit, OpenVPN client 2.3.1
How do I prevent OpenVPN from autostarting at boot-up or reboot?
I am using Ubuntu 12.04.2 LTS, 64-bit, OpenVPN client 2.3.1
How do I prevent OpenVPN from autostarting at boot-up or reboot?
You have two options:
Run:
sudo update-rc.d openvpn disable
Then you'll have to run sudo service openvpn start
to manually start the VPN.
Or edit the file /etc/default/openvpn
sudo gedit /etc/default/openvpn
And uncomment the line:
#AUTOSTART="none"
So it looks like:
AUTOSTART="none"
Then you'll have to run sudo service openvpn start <vpn-name>
to manually start the VPN. <vpn-name>
is the config file name without .conf
.
AUTOSTART="none"
to another service file (I'd like to prevent supervisor
from auto-starting) ? Or is it just for OpenVPN ?
– Anto
Oct 08 '13 at 12:52
systemctl is-enabled openvpn@vpn-name
to learn if it's enabled, systemctl disable openvpn@vpn-name
to disable on startup.
– Nek
Jun 16 '20 at 08:14
Nothing on this page helped me, but it was pinned by Google.
The command that fixed my problem:
sudo systemctl disable openvpn@client.service
I am running Ubuntu 20.10 with Openvpn v. 2.4.9
RE: https://www.ivpn.net/knowledgebase/linux/linux-autostart-openvpn-in-systemd-ubuntu/
sudo systemctl disable openvpn
to get it to work.
– oemb1905
Jun 14 '23 at 05:28