svn commit: r567267 - in head/dns/dnsdist: . files
Dave Cottlehuber
dch at FreeBSD.org
Wed Mar 3 22:42:21 UTC 2021
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 at 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"
More information about the svn-ports-all
mailing list