mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Create pid directory if it doesn't exist.
This commit is contained in:
parent
0258a082b0
commit
01f6667cca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333550
@ -92,6 +92,12 @@ named_prestart()
|
||||
warn 'named_pidfile: now determined from the conf file'
|
||||
fi
|
||||
|
||||
echo ${pidfile%/pid}
|
||||
if [ ! -d ${pidfile%/pid} ]; then
|
||||
mkdir -p ${pidfile%/pid}
|
||||
chown ${named_uid}:${named_uid} ${pidfile%/pid}
|
||||
fi
|
||||
|
||||
command_args="-u ${named_uid:=root}"
|
||||
|
||||
if [ ! "$named_conf" = '/etc/namedb/named.conf' ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user