[PR #3334] feat(linux): native support for non-systemd distributions #3207

Open
opened 2026-10-30 04:57:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3334
Author: @Werko1a
Created: 10/26/2026
Status: 🔄 Open

Base: dev ← Head: feat/non-systemd-support


📝 Commits (1)

  • 0d01a59 feat(linux): native support for non-systemd distributions

📊 Changes

26 files changed (+1942 additions, -102 deletions)

View changed files

📝 client/platforms/linux/daemon/dnsutilslinux.cpp (+285 -10)
📝 client/platforms/linux/daemon/dnsutilslinux.h (+14 -0)
📝 cmake/CPack.cmake (+24 -0)
➕ deploy/data/linux/README.md (+169 -0)
➕ deploy/data/linux/README.ru.md (+166 -0)
➕ deploy/data/linux/docs/dns.md (+103 -0)
➕ deploy/data/linux/docs/s6.md (+38 -0)
➕ deploy/data/linux/docs/slackware.md (+44 -0)
➕ deploy/data/linux/docs/wayland.md (+73 -0)
➕ deploy/data/linux/init/dinit/service.template (+6 -0)
➕ deploy/data/linux/init/openrc/service.template (+64 -0)
➕ deploy/data/linux/init/runit/finish.template (+32 -0)
➕ deploy/data/linux/init/runit/log-run.template (+3 -0)
➕ deploy/data/linux/init/runit/run.template (+10 -0)
➕ deploy/data/linux/init/s6/finish.template (+32 -0)
➕ deploy/data/linux/init/s6/run.template (+10 -0)
➕ deploy/data/linux/init/s6/type.template (+1 -0)
➕ deploy/data/linux/init/sysvinit/service.template (+114 -0)
➕ deploy/data/linux/install.sh (+328 -0)
➕ deploy/data/linux/lib/common.sh (+95 -0)

...and 6 more files

📄 Description

Native support for non-systemd Linux distributions. The privileged helper is a
plain Qt process; this PR removes the remaining systemd assumptions:

  • DnsUtilsLinux: fallback to resolvconf/openresolv or /etc/resolv.conf
    when org.freedesktop.resolve1 is unavailable, with backup and restore.
  • SignalHandler: proper SIGTERM shutdown.
  • RouterLinux: no sudo/systemctl assumptions.
  • Native init scripts for OpenRC, runit, s6, dinit, SysVinit and Slackware,
    installed by post_install.sh; CPack ships them.
  • No Python bridge.
    Full build from this branch (Artix/OpenRC). Connected to a real VPN: DNS was
    configured natively, disconnect restored it, kill -9 respawned the daemon,
    stop removed the amnvpn.* chains. Codacy passed.
    Note: the free-VPN test used the official 5.0.3.0 GUI for the gateway secrets;
    the daemon under test was this branch.
    Refs #3329, #775, #3000.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/3334 **Author:** [@Werko1a](https://github.com/Werko1a) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feat/non-systemd-support` --- ### 📝 Commits (1) - [`0d01a59`](https://github.com/amnezia-vpn/amnezia-client/commit/0d01a59c70ddea0ae9618798b97859f3dc9f6b33) feat(linux): native support for non-systemd distributions ### 📊 Changes **26 files changed** (+1942 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `client/platforms/linux/daemon/dnsutilslinux.cpp` (+285 -10) 📝 `client/platforms/linux/daemon/dnsutilslinux.h` (+14 -0) 📝 `cmake/CPack.cmake` (+24 -0) ➕ `deploy/data/linux/README.md` (+169 -0) ➕ `deploy/data/linux/README.ru.md` (+166 -0) ➕ `deploy/data/linux/docs/dns.md` (+103 -0) ➕ `deploy/data/linux/docs/s6.md` (+38 -0) ➕ `deploy/data/linux/docs/slackware.md` (+44 -0) ➕ `deploy/data/linux/docs/wayland.md` (+73 -0) ➕ `deploy/data/linux/init/dinit/service.template` (+6 -0) ➕ `deploy/data/linux/init/openrc/service.template` (+64 -0) ➕ `deploy/data/linux/init/runit/finish.template` (+32 -0) ➕ `deploy/data/linux/init/runit/log-run.template` (+3 -0) ➕ `deploy/data/linux/init/runit/run.template` (+10 -0) ➕ `deploy/data/linux/init/s6/finish.template` (+32 -0) ➕ `deploy/data/linux/init/s6/run.template` (+10 -0) ➕ `deploy/data/linux/init/s6/type.template` (+1 -0) ➕ `deploy/data/linux/init/sysvinit/service.template` (+114 -0) ➕ `deploy/data/linux/install.sh` (+328 -0) ➕ `deploy/data/linux/lib/common.sh` (+95 -0) _...and 6 more files_ </details> ### 📄 Description Native support for non-systemd Linux distributions. The privileged helper is a plain Qt process; this PR removes the remaining systemd assumptions: - `DnsUtilsLinux`: fallback to `resolvconf`/openresolv or `/etc/resolv.conf` when `org.freedesktop.resolve1` is unavailable, with backup and restore. - `SignalHandler`: proper `SIGTERM` shutdown. - `RouterLinux`: no `sudo`/`systemctl` assumptions. - Native init scripts for OpenRC, runit, s6, dinit, SysVinit and Slackware, installed by `post_install.sh`; CPack ships them. - No Python bridge. Full build from this branch (Artix/OpenRC). Connected to a real VPN: DNS was configured natively, disconnect restored it, `kill -9` respawned the daemon, `stop` removed the `amnvpn.*` chains. Codacy passed. Note: the free-VPN test used the official 5.0.3.0 GUI for the gateway secrets; the daemon under test was this branch. Refs #3329, #775, #3000. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3207
No description provided.