Permalink
Browse files

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.
  • Loading branch information...
1 parent 4a23af7 commit 7e5b3a090ff18b148c7743e1cf0984691fba60c1 @zeha zeha committed Sep 21, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 pdns/pdns.in
View
@@ -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" ]

0 comments on commit 7e5b3a0

Please sign in to comment.