-
Notifications
You must be signed in to change notification settings - Fork 241
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
Install As Service #39
Comments
Well, that's possible, but I'd prefer to do it the same way we do it in AG Home: This way it'll be cross-platform and support Win/Linux/MacOS. |
The service support in cloudflared is also cross-platform. I just linked to the Linux code for simplicity. Look at the parent directory. It doesn't require external libraries and uses only Go's sys packages even for the Windows service. |
In the meantime you might use the following file for systemd (after creating a dedicated user
|
Is it also possible to add a command line option for writing the runtime PID to the PID file ? |
Which inits would be supported? I would be interested in OpenRC support as well but maybe if SysVInit script is provided, would work on any system using OpenRC (Gentoo, Devuan, Alpine which is used in containers a lot), Runit (Dragora GNU/Linux-Libre, Void Linux) or SystemD (Ubuntu, Debian and derivatives) and even legacy SysVInit. |
Is there any temporary work around to achieve the below for my ASUS Router (in the meantime)?@ameshkov @joshcangit @krombel Something similar to AdGuardHome... I can configure AdGuardHome to run as a service on my ASUS Merlin Router (with Entware). Example of AdGuard Home
This makes AdGuardHome as the DNS server running on port 53 and my existing dnsmasq still operating on my router (on custom port 553 and only for local queries) Can I do something similar with dnsproxy?Or some workaround/ hack to utilise it the same way as AdGuardHome ?What I am looking to achieve is...
|
Thanks. @joshcangit I presume you are running this on Debian/ Ubuntu.. My bigger issue is getting dnsproxy to run as a service. How do I get dnsproxy to launch automatically using /opt/etc/init.d |
Yes indeed, I'm using Ubuntu.
Forgive me, i didn't know about Entware. |
Old thread, but noticed you are using DoH3 to NextDNS in the config. Can DNSproxy already do DoH3 to upstream servers?! |
oh, I forgot about what I said in #234. |
I try to start it with:
but i get this error:
|
@Tealk your ExecStart has a spelling mistake, unless you have a binary named dnYproxy |
@Mikaela thanks, i realised that yesterday but i must have forgotten to correct it here, that's not the problem anyway. |
Can you add a command line option to install dnsproxy as a service similar to cloudflared?
sudo cloudflared service install
https://github.com/cloudflare/cloudflared/blob/master/cmd/cloudflared/linux_service.go
The text was updated successfully, but these errors were encountered: