- [Unit]
- Description=Starts Openvpn on openvpn-germany file
- After=network-online.target
- [Timer]
- OnBootSec=5min
- [Service]
- Type=forking
- User=root
- Group=root
- UMask=007
- PIDFile=/home/orangepi/openvpn-germany.pid
- PrivateTmp=true
- ExecStart=/usr/sbin/openvpn --daemon --writepid /home/orangepi/openvpn-germany.pid --cd /home/orangepi/Downloads/ --config openvpn-germany.conf
- ExecStop=pkill openvpn
- Restart=on-failure
- RestartSec=300
- # Configures the time to wait before service is stopped forcefully.
- #TimeoutStopSec=300
- [Install]
- WantedBy=multi-user.target
OPENVPN Systemd script