From e6e31410e093b426bfa5b9a2094be56c8406b6a2 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 30 Aug 2019 11:54:47 -0700 Subject: [PATCH] Find .d pid files with swift-orphans Change-Id: I7a2f19862817abf15e51463bd124293730451602 --- bin/swift-orphans | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/swift-orphans b/bin/swift-orphans index ed2b896fab..8095c9e2f6 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'],