Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create portable systemd.service files #7743

Open
2 tasks done
merv4 opened this issue Mar 3, 2025 · 0 comments
Open
2 tasks done

create portable systemd.service files #7743

merv4 opened this issue Mar 3, 2025 · 0 comments
Labels

Comments

@merv4
Copy link

merv4 commented Mar 3, 2025

Is it a bug?

  • I know this is an issue with the app, and contacting Mullvad support is not relevant.

I have checked if others have reported this already

  • I have checked the issue tracker to see if others have reported similar issues.

Current Behavior

Non-portable service files.

The current systemd.service files are ordered against specific services. This is not portable across systems. Because of this users are required to edit the service file, or abandon their current setup, for proper functionality.

Expected Behavior

Portable service files.

These issues may be avoided by using standard systemd targets (i.e. network-online.target).

For example, this After= directive from mullvad-daemon.service can instead be "After=network.target". This works since network managers (i.e iwd systemd-networkd) and resolvers (i.e. systemd-resolved) are expected to be up before this target. As a result, the non-portable ordering against NetworkManager is removed and IWD systems do not break.

Similarly, this Before= directive from mullvad-early-boot-blocking.service can instead be "Before=network-pre.target". Because it is expected that no network service is started before this point, which is a perfect fit for an early firewall.

Steps to Reproduce

  1. Install mullvadvpn-app (on a system not using NetworkManager)
  2. Enable mullvad systemd.service files
  3. Enable network service files that may also run (like IWD or systemd-networkd)
  4. Reboot system
  5. Mullvad, or the network service, may fail several times due to missing resources (bad ordering)

Failure Logs

Operating system version

No response

Mullvad VPN app version

No response

Additional Information

No response

@merv4 merv4 added the bug label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant