+ # Because the default socket is in the same location as the
+ # pidfile, we create them in this order.
+ if [ ! -d $(dirname $PIDFILE) ]; then
+ mkdir -p $(dirname $PIDFILE);
+ if [ -d $(dirname $PIDFILE) ] && [ -n "$RUNAS" ]; then
+ chown "$RUNAS" $(dirname $PIDFILE);
+ fi;
+ fi;