开机自启
vim /etc/systemd/system/openvpn-myconfig.service
[Unit]
Description=OpenVPN-myconfig
After=network.target
[Service]
Type=forking
ExecStart=/usr/sbin/openvpn --daemon --config /etc/openvpn/client/client.ovpn --auth-user-pass /etc/openvpn/client/jms.txt --log-append /var/log/openvpn.log
[Install]
WantedBy=multi-user.target
开机
systemctl enable openvpn-myconfig.service