summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2019-08-30 11:54:47 -0700
committerTim Burke <tim.burke@gmail.com>2019-08-30 11:54:47 -0700
commite6e31410e093b426bfa5b9a2094be56c8406b6a2 (patch)
tree8af3b4371bcd1ac00497cd677eb2fa49a7b6f368 /bin
parent3ec6ce2a0f32022b5f5e78219c59cfd1174c7154 (diff)
downloadswift-e6e31410e093b426bfa5b9a2094be56c8406b6a2.tar.gz
Find .d pid files with swift-orphans
Change-Id: I7a2f19862817abf15e51463bd124293730451602
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift-orphans2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/swift-orphans b/bin/swift-orphans
index ed2b896fa..8095c9e2f 100755
--- a/bin/swift-orphans
+++ b/bin/swift-orphans
@@ -53,7 +53,7 @@ Example (sends SIGTERM to all orphaned Swift processes older than two hours):
for root, directories, files in os.walk(options.run_dir):
for name in files:
- if name.endswith('.pid'):
+ if name.endswith(('.pid', '.pid.d')):
pids.append(open(os.path.join(root, name)).read().strip())
pids.extend(subprocess.Popen(
['ps', '--ppid', pids[-1], '-o', 'pid', '--no-headers'],