mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix shutdown on older systems: avoid find's '-depth n' primary.
Reported by: Robin Breathe <robin@isometry.net>
This commit is contained in:
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
|
@ -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/
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue