Date: Wed, 3 Mar 2021 22:42:20 +0000 (UTC) From: Dave Cottlehuber <dch@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r567267 - in head/dns/dnsdist: . files Message-ID: <202103032242.123MgKmh021693@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dch Date: Wed Mar 3 22:42:20 2021 New Revision: 567267 URL: https://svnweb.freebsd.org/changeset/ports/567267 Log: dns/dnsdist: ensure pidfile exists & has appropriate permissions PR: 253887 Approved by: Ralf van der Enden <tremere@cainites.net> (maintainer) Sponsored by: SkunkWerks, GmbH Modified: head/dns/dnsdist/Makefile head/dns/dnsdist/files/dnsdist.in Modified: head/dns/dnsdist/Makefile ============================================================================== --- head/dns/dnsdist/Makefile Wed Mar 3 22:32:32 2021 (r567266) +++ head/dns/dnsdist/Makefile Wed Mar 3 22:42:20 2021 (r567267) @@ -3,7 +3,7 @@ PORTNAME= dnsdist DISTVERSION= 1.5.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= dns net MASTER_SITES= https://downloads.powerdns.com/releases/ Modified: head/dns/dnsdist/files/dnsdist.in ============================================================================== --- head/dns/dnsdist/files/dnsdist.in Wed Mar 3 22:32:32 2021 (r567266) +++ head/dns/dnsdist/files/dnsdist.in Wed Mar 3 22:42:20 2021 (r567267) @@ -95,4 +95,13 @@ else fi fi +start_precmd=dnsdist_startprecmd + +dnsdist_startprecmd() +{ + if [ ! -e ${pidfile} ]; then + install -o ${dnsdist_priv_user} -g ${dnsdist_priv_group} /dev/null ${pidfile}; + fi +} + run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103032242.123MgKmh021693>