Fix shutdown on older systems: avoid find's '-depth n' primary.

Reported by:	Robin Breathe <robin@isometry.net>
This commit is contained in:
Peter Pentchev 2004-07-30 17:40:18 +00:00
parent c46f0fef41
commit fc73a3eebe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115096
2 changed files with 2 additions and 2 deletions

View file

@ -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/

View file

@ -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"