From efb53e8650536ef3ccb0e82dd9c92ebc86960cd2 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 4 Jun 2020 19:12:04 -0400 Subject: .bashrc: lxc-restart kill --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index ee085e4..1820887 100644 --- a/.bashrc +++ b/.bashrc @@ -103,7 +103,7 @@ nix-which() { readlink "$(type -P "$1")"; } # lxc helpers lxc-copy() { $(type -P lxc-copy) -n "$1" -N "$2"; } -lxc-restart() { $(type -P lxc-stop) -n "$1"; $(type -P lxc-start) -n "$1"; } +lxc-restart() { $(type -P lxc-stop) -kn "$1"; $(type -P lxc-start) -n "$1"; } lxc-start() { for container in "$@"; do $(type -P lxc-start) -n "$container"; done } lxc-stop() { for container in "$@"; do $(type -P lxc-stop) -kn "$container"; done } lxc-destroy() { for container in "$@"; do $(type -P lxc-destroy) -n "$container"; done } -- cgit v1.2.3