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

Move daemon start after so more computer setup can be added by children images #500

Merged
merged 3 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions stack/base/before-notebook.d/40_prepare-aiida.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,3 @@ else
verdi storage migrate --force

fi

# Daemon will start only if the database exists and is migrated to the latest version.
verdi daemon start || echo "ERROR: AiiDA daemon is not running!"
9 changes: 9 additions & 0 deletions stack/base/before-notebook.d/90_start_aiida_daemon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# This script is executed whenever the docker container is (re)started.
set -x

export SHELL=/bin/bash

# Daemon will start only if the database exists and is migrated to the latest version.
verdi daemon start || echo "ERROR: AiiDA daemon is not running!"