aboutsummaryrefslogtreecommitdiff
path: root/net/zerotier/files
diff options
context:
space:
mode:
authorDave Cottlehuber <dch@FreeBSD.org>2018-07-03 13:08:59 +0000
committerDave Cottlehuber <dch@FreeBSD.org>2018-07-03 13:08:59 +0000
commitbade39ee47ca90514bf7de1963c30b0b1aa4fd11 (patch)
treeb267cae141a30a9e44cca0dd0a118b34d4fa4612 /net/zerotier/files
parent7326e29c82616906061df08671bb9e36e7bc81f8 (diff)
downloadports-bade39ee47ca90514bf7de1963c30b0b1aa4fd11.tar.gz
ports-bade39ee47ca90514bf7de1963c30b0b1aa4fd11.zip
net/zerotier: update 1.2.8 to 1.2.10
include 3 upstream bugs related to large environments: - Fix bug loading moons.d/ files for federated root operation. - Fix compile problem with ZT_DEBUG on some versions of clang - Fix slow network startup bug related to loading of networks.d/ cache files improve daemon functionality: - improve rc.d dependencies by requiring devfs instead of netif - use daemon(8) to capture debug logging to syslog if > FreeBSD 11.1R and if compiled with debugging option - let rc.d script load if_tap if not already present - add reminder for users about sysctls to avoid race conditions at boot time Reviewed by: mat Approved by: jrm Differential Revision: https://reviews.freebsd.org/D15534
Notes
Notes: svn path=/head/; revision=473828
Diffstat (limited to 'net/zerotier/files')
-rw-r--r--net/zerotier/files/zerotier.in19
1 files changed, 15 insertions, 4 deletions
diff --git a/net/zerotier/files/zerotier.in b/net/zerotier/files/zerotier.in
index 62880d21dd58..87b66e7b3eef 100644
--- a/net/zerotier/files/zerotier.in
+++ b/net/zerotier/files/zerotier.in
@@ -3,8 +3,8 @@
# $FreeBSD$
#
# PROVIDE: zerotier
-# REQUIRE: FILESYSTEMS netif
-# BEFORE: pf ipfw ipfilter
+# REQUIRE: FILESYSTEMS devfs
+# BEFORE: pf ipfw
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
@@ -22,8 +22,19 @@ load_rc_config $name
: ${zerotier_enable:="NO"}
-command=%%PREFIX%%/sbin/${name}-one
+required_modules="if_tap"
-command_args="-d"
+pidfile="/var/run/${name}.pid"
+start_precmd="install -o root /dev/null ${pidfile}"
+
+command="/usr/sbin/daemon"
+command_args=" \
+ -c \
+ -t ${name} \
+ -r \
+ -P ${pidfile} \
+ %%ZEROTIER_SYSLOG%% \
+ /usr/local/sbin/${name}-one"
run_rc_command "$1"
+