dnsdist/dnsdist_bindir.patch

45 lines
1.6 KiB
Diff

Index: dnsdist-0.0.950g18fd2a4/dnsdist.service.in
===================================================================
--- dnsdist-0.0.950g18fd2a4.orig/dnsdist.service.in
+++ dnsdist-0.0.950g18fd2a4/dnsdist.service.in
@@ -7,7 +7,7 @@ After=network-online.target
[Service]
# Note: when editing the ExecStart command, keep --supervised and --disable-syslog
-ExecStart=@bindir@/dnsdist --supervised --disable-syslog
+ExecStart=@bindir@/dnsdist --supervised --disable-syslog --uid dnsdist --gid dnsdist $DNSDIST_OPTIONS
Type=notify
Restart=on-failure
Index: dnsdist-0.0.950g18fd2a4/contrib/dnsdist.default
===================================================================
--- dnsdist-0.0.950g18fd2a4.orig/contrib/dnsdist.default
+++ dnsdist-0.0.950g18fd2a4/contrib/dnsdist.default
@@ -1 +1,25 @@
-DNSDIST_OPTIONS=''
+## Path: System/DNS
+## Description: Commandline options to pass to dnsdist
+## Type: string
+## Default: --config /etc/dnsdist/dnsdist.lua
+## ServiceRestart: dnsdist
+##
+#
+# While you can also configure things like local listen and peers
+# on the commandline, it might be easier to do that in the config
+# file. But either way is supported.
+#
+# If you prefer to configure the listen and peers on the
+# commandline, change the option to something like:
+#
+# --local 127.0.0.1:53 8.8.8.8:53 8.8.4.4:53
+#
+# It should be noted that the following options are hardcoded on
+# the commandline in the service file:
+#
+# --uid dnsdist --gid dnsdist --supervised
+#
+# You should not pass the --daemon option as it will break the
+# startup handling in systemd.
+#
+DNSDIST_OPTIONS='--config /etc/dnsdist/dnsdist.lua'