net-vpn/mullvadvpn-app: Add openrc service for mullvad-daemon

Signed-off-by: Thanos Apollo <public@thanosapollo.com>
This commit is contained in:
Thanos Apollo
2023-11-06 12:58:34 +02:00
parent 6cceb97e1a
commit cda3c29815
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/sbin/openrc-run
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/mullvad-daemon"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true

View File

@@ -49,6 +49,8 @@ src_install() {
dobin "${S}"/usr/bin/mullvad-exclude
dosym "/opt/Mullvad VPN/resources/mullvad-problem-report" /usr/bin/mullvad-problem-report
newinitd "${FILESDIR}"/mullvad-daemon.initd mullvad-daemon
systemd_newunit "${S}"/usr/lib/systemd/system/mullvad-daemon.service mullvad-daemon.service
systemd_newunit "${S}"/usr/lib/systemd/system/mullvad-early-boot-blocking.service mullvad-early-boot-blocking.service