From db2aaf7ee6035660e3f5d1dae8a62f48ffe64070 Mon Sep 17 00:00:00 2001 From: Div Arora Date: Sat, 6 Aug 2022 08:45:52 +0800 Subject: [PATCH] fix: start postgresql post-resize if not running --- ansible/files/admin_api_scripts/grow_fs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/files/admin_api_scripts/grow_fs.sh b/ansible/files/admin_api_scripts/grow_fs.sh index 6d2a4e5e4..bf2807026 100644 --- a/ansible/files/admin_api_scripts/grow_fs.sh +++ b/ansible/files/admin_api_scripts/grow_fs.sh @@ -20,4 +20,9 @@ else growpart /dev/nvme0n1 2 resize2fs /dev/nvme0n1p2 fi + +if ! systemctl is-active postgresql --quiet ; then + systemctl start postgresql +fi + echo "Done resizing disk"