aboutsummaryrefslogtreecommitdiff
path: root/windscribe-helper.initd
diff options
context:
space:
mode:
Diffstat (limited to 'windscribe-helper.initd')
-rwxr-xr-xwindscribe-helper.initd4
1 files changed, 4 insertions, 0 deletions
diff --git a/windscribe-helper.initd b/windscribe-helper.initd
index a2fecdb..4dbfaf6 100755
--- a/windscribe-helper.initd
+++ b/windscribe-helper.initd
@@ -6,6 +6,10 @@ command="/opt/windscribe/helper"
command_background="yes"
pidfile="/run/windscribe/helper.pid"
+# Upstream systemd unit pins PATH so the scripts run as root resolve their tools
+# from distro directories only, never /usr/local/{sbin,bin}.
+export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
+
# Ensure /run/windscribe exists before starting
start_stop_daemon_args="--make-pidfile"