0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-02-07 20:59:51 +00:00
Christian Hewitt d9dd8236c5 systemd: cleanup text in openvpn.service.sample
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2024-11-01 13:41:12 +00:00

44 lines
1.1 KiB
Plaintext

[Unit]
Description=OpenVPN Autorun Service
Requires=network-online.service
After=network-online.service
[Service]
Type=forking
ExecStart=/usr/sbin/openvpn --daemon --config /storage/.config/openvpn.config
Restart=always
RestartSec=15
[Install]
WantedBy=kodi.target
# NOTES:
#
# 1) Create /storage/.config/openvpn.config using the .config/.conf/.ovpn
# file from your VPN service provider and test the connection:
#
# /usr/sbin/openvpn --daemon --config /storage/.config/openvpn.config
#
# 2) The openvpn.service file must be enabled 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