mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-vpn/mullvadvpn-app: Add openrc service for mullvad-daemon
Signed-off-by: Thanos Apollo <public@thanosapollo.com>
This commit is contained in:
7
net-vpn/mullvadvpn-app/files/mullvad-daemon.initd
Normal file
7
net-vpn/mullvadvpn-app/files/mullvad-daemon.initd
Normal 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user