From 373e6b41e03973aa85e937d0c1c55fe4e6b2e86e Mon Sep 17 00:00:00 2001 From: Seth Grover Date: Wed, 24 Jul 2024 09:05:23 -0600 Subject: [PATCH] idaholab/Malcolm#521 allow stopping/restarting a single service or services --- scripts/control.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/control.py b/scripts/control.py index f7cae98fb..9e22a2e12 100755 --- a/scripts/control.py +++ b/scripts/control.py @@ -846,13 +846,17 @@ def stop(wipe=False): if args.service is not None: # stopping a single (or multiple services) err, out = run_process( - [dockerComposeBin, '--profile', args.composeProfile, '-f', args.composeFile, 'stop'] + args.service + [dockerComposeBin, '--profile', args.composeProfile, '-f', args.composeFile, 'stop'] + args.service, + env=osEnv, + debug=args.debug, ) if err == 0: eprint(f"Stopped Malcolm's {args.service} services\n") err, out = run_process( [dockerComposeBin, '--profile', args.composeProfile, '-f', args.composeFile, 'rm', '--force'] - + args.service + + args.service, + env=osEnv, + debug=args.debug, ) if err == 0: eprint(f"Removed Malcolm's {args.service} services\n")