Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the *before_notebook* 20_start-postgresql.sh and 40_prepare_aiida.sh #476

Merged
merged 8 commits into from
Jul 4, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ else
chmod -R g-rwxs "${PGDATA}"

if [[ -f ${PGDATA}/logfile ]]; then
mv "${PSQL_LOGFILE}" "${PSQL_LOGFILE}.1" && gzip "${PSQL_LOGFILE}.1"
rm -f "${PSQL_LOGFILE}.1.gz"
mv "${PSQL_LOGFILE}" "${PSQL_LOGFILE}.1" && gzip "${PSQL_LOGFILE}.1"
fi
# Cleaning up the mess if PostgreSQL was not shutdown properly.
rm -vf "${PGDATA}/postmaster.pid"
Expand Down
2 changes: 2 additions & 0 deletions stack/base/before-notebook.d/40_prepare-aiida.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ load_computer('${computer_name}').set_minimum_job_poll_interval(${job_poll_inter
else

# Migration will run for the default profile.
danielhollas marked this conversation as resolved.
Show resolved Hide resolved
## clean up stale PID-files -> .aiida/daemon/circus-{profile-name}.pid
rm -f "/home/${NB_USER}/.aiida/daemon/circus-${AIIDA_PROFILE_NAME}.pid"
mikibonacci marked this conversation as resolved.
Show resolved Hide resolved
verdi storage migrate --force

fi
Expand Down