]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
init script: ensure socket dir exists 1724/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 21 Sep 2014 21:15:00 +0000 (23:15 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 21 Sep 2014 21:15:00 +0000 (23:15 +0200)
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

index f092955a64ae91902e5d3ca2b136d301c7002103..25bb038fac4b760878f0b231e013635ebd4e363c 100755 (executable)
@@ -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" ]