]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - build-scripts/debian-recursor/pdns-recursor.init
Rec: create socket-dir from init-script
[thirdparty/pdns.git] / build-scripts / debian-recursor / pdns-recursor.init
index 5ab22c20118320b81c43b8d37fafc8327fb04c3b..4ab03837648efe177fdbc3b95ec16baf09a0ee0e 100644 (file)
@@ -28,6 +28,7 @@ DAEMON=/usr/sbin/$NAME
 # or fall back to the default /var/run if not specified there.
 PIDDIR=$(awk -F= '/^socket-dir=/ {print $2}' /etc/powerdns/recursor.conf)
 if [ -z "$PIDDIR" ]; then PIDDIR=/var/run; fi
+mkdir -p "$PIDDIR"
 PIDFILE=$PIDDIR/$NAME.pid
 
 # Gracefully exit if the package has been removed.