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>
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"