Add systemd units

This commit is contained in:
Star Brilliant
2017-10-04 01:10:58 +08:00
parent c4a57edc7f
commit 3230cc0a0a
4 changed files with 49 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=DNS-over-HTTPS Server
After=network.target
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=/usr/local/bin/doh-server
LimitNOFILE=1048576
Restart=always
RestartSec=3
Type=simple
User=nobody
[Install]
WantedBy=multi-user.target