diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-01-28 10:50:23 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-01-28 10:50:23 -0200 |
commit | 0171ddb9708968a25bc4d9dee0427ad24dcc78ff (patch) | |
tree | 7cbd66681ff99a208d99859d90bed4a4618c975a /kvmx-status | |
parent | 9903bf0df5dcda03ed1505bef247e84cc4a17ec4 (diff) | |
download | kvmx-0171ddb9708968a25bc4d9dee0427ad24dcc78ff.tar.gz kvmx-0171ddb9708968a25bc4d9dee0427ad24dcc78ff.tar.bz2 |
Make kvmx-supervise work for regular users
Diffstat (limited to 'kvmx-status')
-rwxr-xr-x | kvmx-status | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/kvmx-status b/kvmx-status index eabfed7..6a90997 100755 --- a/kvmx-status +++ b/kvmx-status @@ -18,10 +18,17 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -# Get instances -instances="`kvmx list`" +# Parameters +DIRNAME="`dirname $0`" -# Kill old instances -for vm in $instances; do - kvmx status $vm -done +# Dispatch to kvmx-supervise +$DIRNAME/kvmx-supervise status + +# Old implementation +## Get instances +#instances="`kvmx list`" +# +## Kill old instances +#for vm in $instances; do +# kvmx status $vm +#done |