summarylogtreecommitdiffstats
path: root/mullvad-daemon.rc
diff options
context:
space:
mode:
Diffstat (limited to 'mullvad-daemon.rc')
-rwxr-xr-xmullvad-daemon.rc16
1 files changed, 16 insertions, 0 deletions
diff --git a/mullvad-daemon.rc b/mullvad-daemon.rc
new file mode 100755
index 000000000000..fde87f5a8f41
--- /dev/null
+++ b/mullvad-daemon.rc
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# OpenRC service unit file for the Mullvad VPN daemon
+
+depend() {
+ need net
+ after mullvad-early-boot-blocking
+}
+
+export "MULLVAD_RESOURCE_DIR=/opt/Mullvad VPN/resources/"
+name=$RC_SVCNAME
+description="Mullvad VPN daemon"
+supervisor="supervise-daemon"
+command="/usr/bin/mullvad-daemon"
+command_args="-v --disable-stdout-timestamps"
+pidfile="/run/${RC_SVCNAME}.pid"
+command_background=true