I have an openVPN running, but cannot manager to make it start on boot. (and also would like it to auto-restart if it gets disconnected).
Here is how is was implemented in Xbian (creating a startSB.sh in /etc/init.d/):
sudo touch /etc/init.d/startSB.sh sudo chmod +x /etc/init.d/startSB.sh sudo nano /etc/init.d/startSB.sh
and initiating a start command
#!/bin/sh sudo openvpn --config /etc/openvpn/FIP/NL.ovpn --script-security 2
to be bootable
sudo update-rc.d startSB.sh defaults
I know that systemd does not recommend using /etc/init.d for start on boot, but should I write the “start command” from above directly in /etc/systemd/system then?