AdguardTeam / AdguardTeam/AdGuardHome

AdGuardHome doesn't know how to daemonize

Offen
#2,701 8 Kommentare 4 Reaktionen 1 zugewiesene Person Beansprucht von @ainar-g Auf GitHub ansehen
feature request P3: Medium research
Vorherrschende Sprache
TypeScript
Sterne
36.9k
Forks
2.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi, I am using v0.104.3 and noticed that AdGuardHome can't actually go into background. There is no "-d" or "--daemon" switch available and the process always stays on the terminal in the foreground.
This is not a problem in linux with systemd but it is a problem in NetBSD where startup scripts are based on shell scripts.
FreeBSD works around this by invoking AdGuardHome through "daemon" binary which is available in base system.
I asked around and there is no such thing available in NetBSD base system so currently the startup script I wrote uses /usr/bin/sh "&" at the end of the command which of course is ugly.
Most (if not all?) daemons I saw have a -d flag or similar to go into background. Would it be possible to implement this in AdGuardHome?

PS. I managed to build AdGuardHome on NetBSD with no fuss at all and prepared a pkgsrc package (currently in wip/adguardhome).

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.