From fc73a3eebe1c8421b78588ba407307c8b10a7d6f Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Fri, 30 Jul 2004 17:40:18 +0000 Subject: [PATCH] Fix shutdown on older systems: avoid find's '-depth n' primary. Reported by: Robin Breathe --- sysutils/daemontools/Makefile | 2 +- sysutils/daemontools/files/svscan.sh.sample | 2 +- 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"