tart stop: return a different exit code when VM is not running (#321)

See https://github.com/cirruslabs/tart/pull/316#issuecomment-1311556674.
This commit is contained in:
Nikolay Edigaryev 2022-11-11 23:20:21 +04:00 committed by GitHub
parent 31ba71dad7
commit 833c162187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ struct Stop: AsyncParsableCommand {
if pid == 0 { if pid == 0 {
print("VM \(name) is not running") print("VM \(name) is not running")
Foundation.exit(1) Foundation.exit(2)
} }
// Try to gracefully terminate the VM // Try to gracefully terminate the VM