Over the years we had LOTS of cases of PostgreSQL instances that weren't stopped properly. This gives PG more time to handle it's shutdown cleanly on the worst case, but will still shutdown fast in normal cases.
then
(
set -x
- $docker_path stop -t 30 $config
+ $docker_path stop -t 600 $config
)
else
echo "$config was not started !"
echo "Stopping old container"
(
set -x
- $docker_path stop -t 60 $config
+ $docker_path stop -t 600 $config
)
fi
destroy)
- (set -x; $docker_path stop -t 10 $config && $docker_path rm $config) || (echo "$config was not found" && exit 0)
+ (set -x; $docker_path stop -t 600 $config && $docker_path rm $config) || (echo "$config was not found" && exit 0)
exit 0
;;
esac