From: Jason Stephenson Date: Tue, 4 Dec 2018 19:35:38 +0000 (-0500) Subject: Make sure that memcached is running on the vm. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ab213396f9baa944e552fbf6835c3f91c1eec1a;p=contrib%2Fmasslnc%2Fvmscripts.git Make sure that memcached is running on the vm. Signed-off-by: Jason Stephenson --- 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