diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2013-11-12 08:55:46 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2013-11-12 08:55:46 +0000 |
commit | 01f6667cca1e0b019bc9a39741696523aeb71ca5 (patch) | |
tree | 3d286fe110426355b7f45766914fb7d418e9d693 /dns/bind98/files/named | |
parent | 0258a082b0795d3bca45eef46fabcedb1bd6714f (diff) | |
download | ports-01f6667cca1e0b019bc9a39741696523aeb71ca5.tar.gz ports-01f6667cca1e0b019bc9a39741696523aeb71ca5.zip |
Create pid directory if it doesn't exist.
Notes
Notes:
svn path=/head/; revision=333550
Diffstat (limited to 'dns/bind98/files/named')
-rw-r--r-- | dns/bind98/files/named | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dns/bind98/files/named b/dns/bind98/files/named index bda049462f92..20e94d021a1d 100644 --- a/dns/bind98/files/named +++ b/dns/bind98/files/named @@ -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 |