Skip to content

Commit

Permalink
Move daemon start after so more computer setup can be added by childr…
Browse files Browse the repository at this point in the history
…en images (#500)

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

* Rename to 90_start_aiida_daemon.sh in case where after daemon script required
  • Loading branch information
unkcpz authored Sep 17, 2024
1 parent 6481bf5 commit 9436cae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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!"

0 comments on commit 9436cae

Please sign in to comment.