Skip to content

Commit

Permalink
script to remove database lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Oct 6, 2024
1 parent ac0d388 commit 803629f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"static": "cd packages/static && npm run webpack",
"psql": "export PGHOST=${PGHOST:=$INIT_CWD/data/postgres/socket}; PGUSER='smc' psql",
"database": "cd dev/project && ./start_postgres.py",
"database-remove-locks": "./scripts/database-remove-locks",
"c": "LOGS=/tmp/ DEBUG='cocalc:*' ./scripts/c",
"version-check": "pip3 install typing_extensions mypy || pip3 install --break-system-packages typing_extensions mypy && ./workspaces.py version-check && mypy scripts/check_npm_packages.py",
"test-parallel": "unset DEBUG && pnpm run version-check && cd packages && pnpm run -r --parallel test",
Expand Down
5 changes: 5 additions & 0 deletions src/scripts/database-remove-locks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set -ev

rm -vf data/postgres/*.pid
rm -vf data/postgres/socket/.s.PGSQL.5432
rm -vf data/postgres/socket/.s.PGSQL.5432.lock

0 comments on commit 803629f

Please sign in to comment.