Skip to content

Commit 4c66e90

Browse files
committed
Do not try to start deamons that are gone
When restoring state after upgrade we should not try to start daemons that were removed in the new version. One such example is cf-consumer. Ticket: ENT-3385 Changelog: None
1 parent fee4b73 commit 4c66e90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packaging/common/script-templates/script-common.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ restore_cfengine_state() {
6767
fi
6868

6969
for d in `grep 'cf-' "$1"`; do
70-
${PREFIX}/bin/${d}
70+
if [ -f ${PREFIX}/bin/${d} ]; then
71+
${PREFIX}/bin/${d}
72+
fi
7173
done
7274
fi
7375
}

0 commit comments

Comments
 (0)