Pause/resume unit
McTwist opened this issue · comments
Make it possible to suspend a unit and then resume it.
pause [vmid/name ...]
Pause all running units, or specify a list of units to pause.resume [vmid/name ...]
Resume all suspended units, or specific ones.
In addition, hibernation should also be possible.
hibernate [vmid/name ...]
Suspending all running units to disk, or specify a list of units to suspend.
Note: A suspended vm can also be resumed with start
. There is a possibility that they do different tasks.
Containers cannot currently be suspended(found here), meaning their suspension will failover to being stopped. This should not be a big issue, as those should be small and quick. Hibernation will not work at all, due to missing flag, so stopping is the only alternative.
Example
pause
a unit will put it into paused state. When resume
or start
is issued, the unit will continue running.