From c849ae347002a066e7fcc9e810bcdb2a76c7cc06 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 16 May 2013 14:44:35 -0400 Subject: [PATCH] zephyr_mirror: Fix incorrect check for already running mirror bots. (imported from commit 76e758697ac19362e79d4a4995b576f10d229514) --- bots/zephyr_mirror_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 978e3c4..c01f7bd 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -925,7 +925,7 @@ or specify the --api-key-file option.""" % (options.api_key_file,)))) # Kill all zephyr_mirror processes other than this one and its parent. if not options.test_mode: - pgrep_query = "/usr/bin/python.*zephyr_mirror" + pgrep_query = "python.*zephyr_mirror" if options.shard is not None: pgrep_query = "%s.*--shard=%s" % (pgrep_query, options.shard) proc = subprocess.Popen(['pgrep', '-U', os.environ["USER"], "-f", pgrep_query],