Skip to content

Commit

Permalink
idaholab#521 allow stopping/restarting a single service or services
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jul 24, 2024
1 parent 35769a6 commit 373e6b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 373e6b4

Please sign in to comment.