From: Christian Hofstaedtler Date: Sun, 21 Sep 2014 21:15:00 +0000 (+0200) Subject: init script: ensure socket dir exists X-Git-Tag: auth-3.4.0-rc2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1724%2Fhead;p=thirdparty%2Fpdns.git init script: ensure socket dir exists This is an old change in Debian that is apparently necessary on some (newer) systems where the socket dir might vanish on reboot. --- diff --git a/pdns/pdns.in b/pdns/pdns.in index f092955a64..25bb038fac 100755 --- a/pdns/pdns.in +++ b/pdns/pdns.in @@ -27,6 +27,8 @@ DAEMON_ARGS="" [ -r /etc/default/pdns ] && . /etc/default/pdns +# Make sure that /var/run exists +mkdir -p $SOCKETPATH cd $SOCKETPATH suffix=$(basename $0 | cut -d- -f2- -s) if [ -n "$suffix" ]