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