add systemd configuration option
open PR: https://github.com/eventure/hide.client.linux/pull/10
This commit is contained in:
30
systemd-config.patch
Normal file
30
systemd-config.patch
Normal 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
|
||||
Reference in New Issue
Block a user