Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed stop #369

Closed
sergiusens opened this issue Sep 7, 2018 · 3 comments
Closed

Delayed stop #369

sergiusens opened this issue Sep 7, 2018 · 3 comments
Assignees
Milestone

Comments

@sergiusens
Copy link

In order to make unexpected user reuse of a VM more pleasant, at least when driven programmatically, it would be nice to be able to specify a stop delay such that

multipass stop <instance-name> --delay 10m

Would only stop the instance after 10 minutes, stopping can be canceled by calling

multipass start <instance-name>

or use of any other interaction.

@Saviq
Copy link
Collaborator

Saviq commented Sep 7, 2018

Sure, I think we can have something like that. We should probably try and reproduce shutdown's time parsing or so.

@townsend2010 townsend2010 self-assigned this Sep 7, 2018
@townsend2010
Copy link
Collaborator

I told @sergiusens that I would try to get this done in time for his Brussels demo:)

@townsend2010
Copy link
Collaborator

Here is my proposed cli usage:

$ multipass stop my-vm --time +m
where m is the number of minutes to delay before shutting down. Also, -t will be supported for the short option.

To cancel a delayed shutdown, either:
$ multipass stop my-vm --cancel (-c is also supported)
or
$ multipass start my-vm
will cancel any delayed shutdowns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants