andrewrreed HF staff commited on
Commit
faa4fb6
·
1 Parent(s): 1017837

remove pid check/removal

Browse files
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +8 -8
docker-entrypoint-wrapper.sh CHANGED
@@ -21,14 +21,14 @@ fi
21
 
22
  # Start PostgreSQL with the persistent directories
23
  echo "Starting PostgreSQL..."
24
- # First, check if there's a postmaster.pid file and remove it if the process isn't running
25
- if [ -f "/data/postgresql/data/postmaster.pid" ]; then
26
- pid=$(cat /data/postgresql/data/postmaster.pid | head -1)
27
- if ! kill -0 "$pid" 2>/dev/null; then
28
- echo "Removing stale PID file..."
29
- rm /data/postgresql/data/postmaster.pid
30
- fi
31
- fi
32
 
33
  pg_ctl -D /data/postgresql/data -o "-c listen_addresses='*' -c unix_socket_directories='/data/postgresql/run'" start
34
 
 
21
 
22
  # Start PostgreSQL with the persistent directories
23
  echo "Starting PostgreSQL..."
24
+ # # First, check if there's a postmaster.pid file and remove it if the process isn't running
25
+ # if [ -f "/data/postgresql/data/postmaster.pid" ]; then
26
+ # pid=$(cat /data/postgresql/data/postmaster.pid | head -1)
27
+ # if ! kill -0 "$pid" 2>/dev/null; then
28
+ # echo "Removing stale PID file..."
29
+ # rm /data/postgresql/data/postmaster.pid
30
+ # fi
31
+ # fi
32
 
33
  pg_ctl -D /data/postgresql/data -o "-c listen_addresses='*' -c unix_socket_directories='/data/postgresql/run'" start
34