Commit 4a8419df authored by Alain Takoudjou's avatar Alain Takoudjou

gitlab resiliency: remove postgress pid file if exists

parent 62571d8d
......@@ -358,7 +358,7 @@ md5sum = c67ea492e17f774d0e18f1217338a55f
[template-gitlab-resiliency-restore.sh.in]
<= download-template
md5sum = 99c4101b1fcc9a099cf94d09c33d70d0
md5sum = 420d999daae050351a51487b9d2f8fe0
[unicorn.rb.in]
<= download-template
......
......@@ -57,6 +57,10 @@ check_process $postgres_pid_file "Postgres"
check_process $redis_pid_file "Redis"
check_process $run_location/unicorn.pid "Unicorn"
if [ -f "$postgres_pid_file" ]; then
rm $postgres_pid_file
fi
echo "Starting Postgres..."
$postgres_executable &
postgres_pid=$!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment