From 0745ab63cf523873850dc800617ce4038a0fc042 Mon Sep 17 00:00:00 2001 From: Niall McGee Date: Thu, 2 May 2024 13:19:43 +0000 Subject: [PATCH] swmodd: Get lxc-container state from lxc-info --- swmodd/files/etc/init.d/swmodd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swmodd/files/etc/init.d/swmodd b/swmodd/files/etc/init.d/swmodd index c39ff3ee6..d872f395b 100644 --- a/swmodd/files/etc/init.d/swmodd +++ b/swmodd/files/etc/init.d/swmodd @@ -43,7 +43,7 @@ start_lxc_container() { return 0; fi - state=$(lxc-ls -f | tail -n +2 | grep -w "${name}" | cut -d " " -f 2) + state=$(lxc-info -n "$name" -s -H) if [ -z "${state}" ]; then return 0; fi