summarylogtreecommitdiffstats
path: root/mosdns.service
diff options
context:
space:
mode:
Diffstat (limited to 'mosdns.service')
-rw-r--r--mosdns.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/mosdns.service b/mosdns.service
new file mode 100644
index 000000000000..dad2983c2e95
--- /dev/null
+++ b/mosdns.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=mosdns - A DNS forwarder
+After=network.target
+
+[Service]
+Type=exec
+ExecStart=/usr/bin/mosdns start -c /etc/mosdns/config.yaml -d /etc/mosdns
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target