Permalink
Browse files

init script: support DAEMON_ARGS

Support additional command line parameters by sourcing
/etc/default/pdns and taking DAEMON_ARGS from there.
  • Loading branch information...
1 parent 65d3cb2 commit 4a23af75847baa2399d2434eae3186f2bebcc9bf @zeha zeha committed Sep 21, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 pdns/pdns.in
View
@@ -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()
{

0 comments on commit 4a23af7

Please sign in to comment.