summarylogtreecommitdiffstats
path: root/mullvad-daemon.rc
blob: fde87f5a8f412b89413316c0527c36e111a15b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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