JBAS-415 eg-updator uses fast service shutdown
authorBill Erickson <berickxx@gmail.com>
Tue, 27 Jan 2015 16:34:26 +0000 (11:34 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
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 <berickxx@gmail.com>
KCLS/misc-scripts/eg-updater.sh

index 4408ffa..c9edaae 100755 (executable)
@@ -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"