We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5bf06b commit b48783eCopy full SHA for b48783e
packaging/common/cfengine-hub/postinstall.sh
@@ -1056,7 +1056,8 @@ if [ -n "$httpds" ]; then
1056
fi
1057
1058
1059
-if ! (cd /tmp && su cfpostgres -c "$PREFIX/bin/pg_ctl stop -D $PREFIX/state/pg/data -m smart"); then
+# wait 5 minutes for smart shutdown to happen, on slower machines it might take a while
1060
+if ! (cd /tmp && su cfpostgres -c "$PREFIX/bin/pg_ctl stop -D $PREFIX/state/pg/data --timeout=300 -m smart"); then
1061
sleep 300
1062
su cfpostgres -c "$PREFIX/bin/pg_ctl stop -D $PREFIX/state/pg/data -m fast"
1063
0 commit comments