From: Bill Erickson Date: Tue, 27 Jan 2015 16:34:26 +0000 (-0500) Subject: JBAS-415 eg-updator uses fast service shutdown X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a03f10179df47410f37b53cceb4abd8ffa187889;p=working%2FEvergreen.git JBAS-415 eg-updator uses fast service shutdown osrf_control --stop-all uses a graceful shutdown, which is useful when it's not clear if activity is ongoing, but takes longer than a non-graceful shutdown. Since we don't stop services when they may be in use, we don't need graceful shutdown. Use --fast-shutdown-all instead, which tells each service to stop and clean up immediately. Signed-off-by: Bill Erickson --- diff --git a/KCLS/misc-scripts/eg-updater.sh b/KCLS/misc-scripts/eg-updater.sh index 4408ffaf6f..c9edaae280 100755 --- a/KCLS/misc-scripts/eg-updater.sh +++ b/KCLS/misc-scripts/eg-updater.sh @@ -298,8 +298,12 @@ if [ -n "$WEB_ONLY" ]; then deploy_web else + # Note the use of --fast-shutdown-all, which is faster than the + # default graceful shutdown. We don't need graceful shutdown, + # since we will not be stopping potentially active services. announce "Stopping services" - $OSRF /openils/bin/osrf_control --localhost --stop-all > /dev/null + $OSRF /openils/bin/osrf_control --localhost \ + --fast-shutdown-all > /dev/null if [ -z "$SKIP_APACHE" ]; then announce "Stopping Apache"