# Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
# Strings for restart script

tta_restart_desc="  restart            Restarts $PRODUCT_SHORT_NAME services"

base_usage="\
Usage:
       tarantella restart [--force] [--yes]
       tarantella restart --live
       tarantella restart --help"

sf_usage="\
${base_usage}
 - Restarts $PRODUCT_SHORT_NAME services.
 - Use \"tarantella restart --help\" for detailed information."

lf_usage="\
${base_usage}

Deprecated usage:
       tarantella restart [--warm | --kill] [--quiet] [--http | --https]
                          [--servlet]
       tarantalla restart sgd [--warm | --kill] [--quiet]
       tarantella restart webserver [--http | --https] [--servlet]

  Restarts $PRODUCT_SHORT_NAME services, prompting if any users are
  connected or applications are running.

  --force   Forces termination of ${PRODUCT_SHORT_NAME} processes.
  --yes     Do not prompt when restart would close applications or disconnect
            clients.
  --live    Preserves all running applications and connections.
  --warm    Perform a warm restart of the JServer. Application sessions are
            preserved, but client connections may be terminated (deprecated).
  --kill    Equivalent to --force --yes (deprecated).
  --quiet   Equivalent to --yes (deprecated).
  --http    Restarts Apache HTTP services (deprecated).
  --https   Restarts Apache HTTPS services (deprecated).
  --servlet Restarts Tomcat Java Servlet/JavaServer Pages services (deprecated).
  sgd       Restarts only the $PRODUCT_SHORT_NAME core services (deprecated).
  webserver Restarts only the $PRODUCT_SHORT_NAME web services (deprecated).

  The default operation stops and restarts all $PRODUCT_SHORT_NAME services.
  Any clients will be disconnected. Running applications may be terminated.

  The --live option restarts $PRODUCT_SHORT_NAME services without destroying
  any state: Clients remain connected and applications remain running. Only
  those services that support live restart will be restarted.
"

restarted_live="Requested a live restart of $PRODUCT_SHORT_NAME services."
# tried first on restart --warm
restarted_warm_req="Requested a warm restart of $PRODUCT_SHORT_NAME services."
# Displayed if there is no response from jserver - we signal the auxserver to 
# kill the JServer
restarted_warm_force="Trying a warm restart of $PRODUCT_SHORT_NAME services."
restart_stop_failed="\
Warning: Unable to stop all $PRODUCT_SHORT_NAME services.
Your server may be in an inconsistent state. To complete this restart, stop and
start the server by running 'tarantella stop --force' followed by
'tarantella start'."
stop_ws_fail="Failed to stop webserver: try \"tarantella stop\"."
