Skip to content

Commit 083bb50

Browse files
committed
Drop lock file too
1 parent 31ca8a0 commit 083bb50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

planemo/database/postgres_singularity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def __exit__(self, exc_type, exc_value, traceback):
110110
postmaster_pid_file = os.path.join(self.database_location, "pgdata", "postmaster.pid")
111111
if os.path.exists(postmaster_pid_file):
112112
os.remove(postmaster_pid_file)
113+
postmaster_lock_file = os.path.join(self.database_location, "pgrun", "pgrun/.s.PGSQL.5432.lock")
114+
if os.path.exists(postmaster_lock_file):
115+
os.remove(postmaster_lock_file)
113116
except Exception as e:
114117
info(f"Failed to terminate process: {e}")
115118

0 commit comments

Comments
 (0)