From efd28c03ad472bc401da76ef9001ca0f523521d7 Mon Sep 17 00:00:00 2001 From: yo Date: Thu, 14 Jul 2022 11:12:13 +0200 Subject: [PATCH] Reset Running and JID so we can call start() after stop() --- cmd/stop.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/stop.go b/cmd/stop.go index fb1429e..a4f4f4f 100644 --- a/cmd/stop.go +++ b/cmd/stop.go @@ -361,5 +361,7 @@ func StopJail(args []string) { } cj.InternalName = "" + cj.Running = false + cj.JID = 0 } }