From 1b357bf02e03abf60a3717b252c4b9c683caee81 Mon Sep 17 00:00:00 2001 From: Dave Webb Date: Fri, 13 May 2016 21:04:59 +1200 Subject: [PATCH] Further README notes for systemd --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index adb87e514..1649d4eb5 100644 --- a/README.md +++ b/README.md @@ -174,9 +174,11 @@ For example, another container may pause or restrict transmission speeds while t On many modern linux systems, including Ubuntu, systemd can be used to start the transmission-openvpn at boot time, and restart it after any failure. -Save the following as `/etc/systemd/system/transmission-openvpn.service`. +Save the following as `/etc/systemd/system/transmission-openvpn.service`, and replace the OpenVPN PROVIDER/USERNAME/PASSWORD directives with your settings, and add any other directives that you're using. -It's assuming that there is a `bittorrent` user set up with a home directory at `/home/bittorrent/`. The data directory will be mounted at `/home/bittorrent/data/`, and OpenVPN is set to exit if there is a connection failure. OpenVPN exiting triggers the container to also exit, then the `Restart=always` definition in the `transmission-openvpn.service` file tells systems to restart things again. +This service is assuming that there is a `bittorrent` user set up with a home directory at `/home/bittorrent/`. The data directory will be mounted at `/home/bittorrent/data/`. This can be changed to whichever user and location you're using. + +OpenVPN is set to exit if there is a connection failure. OpenVPN exiting triggers the container to also exit, then the `Restart=always` definition in the `transmission-openvpn.service` file tells systems to restart things again. ``` [Unit]