Make sure that memcached is running on the vm.
authorJason Stephenson <jason@sigio.com>
Tue, 4 Dec 2018 19:35:38 +0000 (14:35 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 4 Dec 2018 19:35:38 +0000 (14:35 -0500)
Signed-off-by: Jason Stephenson <jason@sigio.com>
scripts/postbuild.sh

index 3785864..46b2b5d 100755 (executable)
@@ -174,6 +174,11 @@ perl Open-ILS/src/support-scripts/eg_db_config --update-config \\
 --user evergreen --password $EGVMPGPASS --hostname localhost --port 5432 \\
 --database evergreen --admin-user $EGVMEGUSER --admin-pass $EGVMEGPASS --load-all-sample
 
+# Make sure that memcached is running
+if [ -z "\$(pgrep -f memcached)" ]; then
+   sudo systemctl start memcached
+fi
+
 # Install and start websocketd
 cd /home/opensrf
 wget https://github.com/joewalnes/websocketd/releases/download/v0.3.0/websocketd-0.3.0-linux_amd64.zip