aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2004-07-31 01:40:18 +0800
committerroam <roam@FreeBSD.org>2004-07-31 01:40:18 +0800
commitc18eb3740902a78a73649e766bea8710becf0e80 (patch)
treeb22382bd22c7b0aa2e25a059c8bc3f2e2059b4cd /sysutils
parent268b99ca9cd9ffcbe2cdb5016f860faa24fb3d47 (diff)
downloadfreebsd-ports-gnome-c18eb3740902a78a73649e766bea8710becf0e80.tar.gz
freebsd-ports-gnome-c18eb3740902a78a73649e766bea8710becf0e80.tar.zst
freebsd-ports-gnome-c18eb3740902a78a73649e766bea8710becf0e80.zip
Fix shutdown on older systems: avoid find's '-depth n' primary.
Reported by: Robin Breathe <robin@isometry.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/daemontools/Makefile2
-rw-r--r--sysutils/daemontools/files/svscan.sh.sample2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile
index a6cb3238919f..27a3ae9bc320 100644
--- a/sysutils/daemontools/Makefile
+++ b/sysutils/daemontools/Makefile
@@ -7,7 +7,7 @@
PORTNAME= daemontools
PORTVERSION= 0.76
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ \
ftp://cr.yp.to/daemontools/
diff --git a/sysutils/daemontools/files/svscan.sh.sample b/sysutils/daemontools/files/svscan.sh.sample
index 194f66f486aa..3a3af99704aa 100644
--- a/sysutils/daemontools/files/svscan.sh.sample
+++ b/sysutils/daemontools/files/svscan.sh.sample
@@ -68,7 +68,7 @@ svscan_start () {
svscan_stop_post () {
echo "Stopping svscan."
- find -L "$svscan_servicedir" -maxdepth 2 -type d \( -depth 1 -or \( -depth 2 -name 'log' \) \) -print0 | xargs -0 %%PREFIX%%/bin/svc -dx
+ find -L "$svscan_servicedir" -mindepth 1 -maxdepth 2 -type d \( \! -path "$svscan_servicedir/*/*" -or -name 'log' \) -print0 | xargs -0 %%PREFIX%%/bin/svc -dx
}
run_rc_command "$1"