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'],