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

How to run encrypted DNS Server as a Service? #15

Closed
Gill-Bates opened this issue Nov 21, 2019 · 3 comments
Closed

How to run encrypted DNS Server as a Service? #15

Gill-Bates opened this issue Nov 21, 2019 · 3 comments

Comments

@Gill-Bates
Copy link

How can I run the Application as as service when I boot up the Machine?

@jedisct1
Copy link
Member

Is it on Linux?

If this is the case, and unless you are using a different system to run services, most Linux distributions use systemd to run services.

But I'm not very familiar with systemd, so Google may be way more useful.

@Gill-Bates
Copy link
Author

Solved! Thank you!

nano /etc/systemd/system/encrypted-dns.service

[Unit]
Description=Encrypted DNS Server
After=network.target
StartLimitIntervalSec=0
[Service]
Type=Simple
Restart=always
RestartSec=1
WorkingDirectory=/bin/
ExecStart=/bin/bash encrypted-dns

[Install]
WantedBy=multi-user.target

Finally...

systemctl start encrypted-dns.service
systemctl enable encrypted-dns.service

@jedisct1
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants