summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2016-07-07 23:39:03 (GMT)
committerChristian Pointner <equinox@anytun.org>2016-07-07 23:39:03 (GMT)
commitbfd0bd1a5f8054a273872c4da67f35d21b00ad0e (patch)
treed246862ced68bd95fd3bb5b408f937a598957f7c
parentd0f4a7fde394c3ff607f0f7e7a3b92b2fe1f6424 (diff)
added some more deps to systemd units
-rw-r--r--usr/lib/systemd/system/anytun-control@.service1
-rw-r--r--usr/lib/systemd/system/anytun@.service3
2 files changed, 3 insertions, 1 deletions
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