From 4a23af75847baa2399d2434eae3186f2bebcc9bf Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Sun, 21 Sep 2014 23:13:50 +0200 Subject: [PATCH] init script: support DAEMON_ARGS Support additional command line parameters by sourcing /etc/default/pdns and taking DAEMON_ARGS from there. --- pdns/pdns.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/pdns.in b/pdns/pdns.in index 6a62269206..f092955a64 100755 --- a/pdns/pdns.in +++ b/pdns/pdns.in @@ -21,6 +21,7 @@ exec_prefix=@exec_prefix@ BINARYPATH=@bindir@ SBINARYPATH=@sbindir@ SOCKETPATH=@socketdir@ +DAEMON_ARGS="" [ -f "$SBINARYPATH/pdns_server" ] || exit 0 @@ -36,7 +37,7 @@ else PROGNAME=pdns fi -pdns_server="$SBINARYPATH/pdns_server $EXTRAOPTS" +pdns_server="$SBINARYPATH/pdns_server $DAEMON_ARGS $EXTRAOPTS" doPC() { -- 2.47.2