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 14:20:21 -05:00
committed by GitHub
parent 31ba71dad7
commit 833c162187
+1 -1
View File
@@ -22,7 +22,7 @@ struct Stop: AsyncParsableCommand {
if pid == 0 {
print("VM \(name) is not running")
Foundation.exit(1)
Foundation.exit(2)
}
// Try to gracefully terminate the VM