add systemd configuration option

open PR: https://github.com/eventure/hide.client.linux/pull/10
This commit is contained in:
Leonard König
2021-04-13 19:27:10 +02:00
parent c18fe99f52
commit 64d80f1e8c
4 changed files with 44 additions and 6 deletions

30
systemd-config.patch Normal file
View File

@@ -0,0 +1,30 @@
diff --git a/config b/config
new file mode 100644
index 0000000..f0d2bfb
--- /dev/null
+++ b/config
@@ -0,0 +1 @@
+OPTIONS=
diff --git a/hide.me@.service b/hide.me@.service
index b32902f..46b44ef 100644
--- a/hide.me@.service
+++ b/hide.me@.service
@@ -6,9 +6,10 @@ DefaultDependencies=yes
[Service]
Type=notify
-ExecStart=/opt/hide.me/hide.me connect %i
+ExecStart=/opt/hide.me/hide.me connect $OPTIONS %i
WorkingDirectory=/opt/hide.me
ReadWritePaths=/opt/hide.me /etc
+EnvironmentFile=/opt/hide.me/config
TimeoutStopSec=30
Restart=always
RestartSec=5s
@@ -30,4 +31,4 @@ Group=root
LimitNOFILE=64
[Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target