Page MenuHomePhabricator
Authored By
CDanis
Nov 4 2019, 6:32 PM
Size
706 B
Referenced Files
None
Subscribers
None
diff --git a/modules/puppetmaster/templates/puppet-merge.erb b/modules/puppetmaster/templates/puppet-merge.erb
index 845a998749..dd45030d78 100755
--- a/modules/puppetmaster/templates/puppet-merge.erb
+++ b/modules/puppetmaster/templates/puppet-merge.erb
@@ -21,7 +21,14 @@ lock() {
if ! flock -xn $LOCKFD
then
trap EXIT
- die "failed to lock, another puppet-merge running on this host?"
+ PSTREE=$(pstree -su $(fuser $LOCKFILE 2>/dev/null))
+ if [ $(echo "$PSTREE" | wc -l) -eq 1 ]
+ then
+ PSTREE="\nlocking process tree: $PSTREE"
+ else
+ PSTREE=""
+ fi
+ die "failed to lock, another puppet-merge running on this host?${PSTREE}"
fi
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8186664
Default Alt Text
raw.txt (706 B)

Event Timeline