From 7e5b3a090ff18b148c7743e1cf0984691fba60c1 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Sun, 21 Sep 2014 23:15:00 +0200 Subject: [PATCH] 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. --- pdns/pdns.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/pdns.in b/pdns/pdns.in index f092955a6..25bb038fa 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" ] -- 2.40.0