Skip to content

Commit

Permalink
pgrep verdi daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas authored Jul 4, 2024
1 parent 75e6811 commit 201ba78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 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,7 @@ load_computer('${computer_name}').set_minimum_job_poll_interval(${job_poll_inter
else

# Migration will run for the default profile.
pgrep -af 'verdi.* daemon' && echo "ERROR: AiiDA daemon is already running!" && exit 1
## clean up stale PID-files -> .aiida/daemon/circus-{profile-name}.pid
rm -f "/home/${NB_USER}/.aiida/daemon/circus-*.pid"
verdi storage migrate --force
Expand Down

0 comments on commit 201ba78

Please sign in to comment.