From 4ab213396f9baa944e552fbf6835c3f91c1eec1a Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 4 Dec 2018 14:35:38 -0500 Subject: [PATCH] Make sure that memcached is running on the vm. Signed-off-by: Jason Stephenson --- scripts/postbuild.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/postbuild.sh b/scripts/postbuild.sh index 3785864..46b2b5d 100755 --- a/scripts/postbuild.sh +++ b/scripts/postbuild.sh @@ -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 -- 2.11.0