Lakka-LibreELEC/projects/L4T/packages/systemd/config/system.d/openvpn.service.sample
GavinDarkglider bb321a5eed
Lakka-v5.x Switch Support Fixes (#1753)
* Switch: it builds

* Switch: Use udev to finalize usb gadget to save from systemd looping service restart until cable connected.

* Switch: Update kernel stuff again

* Switch: Downgrade Alsa packages to version in 4.x tree

* Joycond: Update Switch version

* Switch: Minor fixes

* LibreELEC: Fix a few broken files from upstream pull

* Switch: Fix LibreELEC build.

* Switch: Update bootloader stuff

* L4T: FFMPEG: Add support for nvv4l2 decoder/encoder

* FFMPEG: Add back encoder support for game recording in retroarch

* FFMPEG: revert a few changes, and add support for vulkan.
2022-10-13 21:05:34 +03:00

44 lines
1.1 KiB
Text

[Unit]
Description=OpenVPN Autorun Service
[Service]
Type=forking
Requires=network-online.service
After=network-online.service
ExecStart=/usr/sbin/openvpn --daemon --config /storage/.config/openvpn.config
Restart=always
RestartSec=15
[Install]
WantedBy=kodi.target
# NOTES:
#
# 1) Edit /storage/.config/openvpn.config to the .config/.conf/.ovpn file
# from your VPN service provider and test it works first by connecting at
# the console:
#
# /usr/sbin/openvpn --daemon --config /storage/.config/openvpn.config
#
# 2) The openvpn.service file must be addeded to the active systemd config
# before it will work. This is done by running:
#
# systemctl enable openvpn.service
#
# 3) If you suspend/resume your LibreELEC system you will need to stop and
# restart the connection with a systemd *.power script, e.g.
#
# mkdir -p /storage/.config/sleep.d
# nano /storage/.config/sleep.d/01-openvpn.power
#
# Copy the sample script below. Remove # marks except for #!/bin/bash
#
# #!/bin/sh
# case "$1" in
# pre)
# systemctl stop openvpn.service
# ;;
# post)
# systemctl start openvpn.service
# ;;
# esac