From bfd0bd1a5f8054a273872c4da67f35d21b00ad0e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 8 Jul 2016 01:39:03 +0200 Subject: added some more deps to systemd units --- usr/lib/systemd/system/anytun-control@.service | 1 + usr/lib/systemd/system/anytun@.service | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/lib/systemd/system/anytun-control@.service b/usr/lib/systemd/system/anytun-control@.service index 4a4fd5e..2fd0b75 100644 --- a/usr/lib/systemd/system/anytun-control@.service +++ b/usr/lib/systemd/system/anytun-control@.service @@ -3,6 +3,7 @@ Description=secure anycast tunneling config daemon for %i PartOf=anytun.service ReloadPropagatedFrom=anytun.service Requires=anytun@%i.service +After=anytun@%i.service Documentation=man:anytun-controld(8) [Service] diff --git a/usr/lib/systemd/system/anytun@.service b/usr/lib/systemd/system/anytun@.service index 4b09163..ba2130f 100644 --- a/usr/lib/systemd/system/anytun@.service +++ b/usr/lib/systemd/system/anytun@.service @@ -2,12 +2,13 @@ Description=secure anycast tunneling daemon for %i PartOf=anytun.service ReloadPropagatedFrom=anytun.service +Wants=anytun-controld@%i.service Documentation=man:anytun(8) [Service] Type=simple PIDFile=/run/anytun/%i.pid -Environment="NAME=%i" "DAEMONOPTS=-D -L stdout:3 --username anytun" +Environment="NAME=%i" "DAEMONOPTS=-D --username anytun" ExecStart=/usr/local/lib/anytun-launcher vpn Restart=on-failure PrivateTmp=yes -- cgit v1.2.3