Skip to content

Commit 9436cae

Browse files
authored
Move daemon start after so more computer setup can be added by children 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
1 parent 6481bf5 commit 9436cae

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

stack/base/before-notebook.d/40_prepare-aiida.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,3 @@ else
8080
verdi storage migrate --force
8181

8282
fi
83-
84-
# Daemon will start only if the database exists and is migrated to the latest version.
85-
verdi daemon start || echo "ERROR: AiiDA daemon is not running!"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# This script is executed whenever the docker container is (re)started.
4+
set -x
5+
6+
export SHELL=/bin/bash
7+
8+
# Daemon will start only if the database exists and is migrated to the latest version.
9+
verdi daemon start || echo "ERROR: AiiDA daemon is not running!"

0 commit comments

Comments
 (0)