We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1eb88c commit a0e407dCopy full SHA for a0e407d
1 file changed
parts/linux/cloud-init/artifacts/cse_helpers.sh
@@ -677,7 +677,7 @@ waitForContainerdReady() {
677
}
678
679
systemctlDisableAndStop() {
680
- if systemctl list-units --full --all | grep -q "$1.service"; then
+ if systemctl cat "$1" &>/dev/null; then
681
systemctl_stop 20 5 25 $1 || echo "$1 could not be stopped"
682
systemctl_disable 20 5 25 $1 || echo "$1 could not be disabled"
683
fi
0 commit comments