hcienginerestart

This command restarts engine processes, threads, and MonitorD. This supports the GUI for restarting an engine process, thread, and MonitorD.

You can use one of these commands:

hcienginerestart -d delay interval -p process [,process...] [-n] 
hcienginerestart -d delay interval -p process [,process...] 
[-h host] [-s thread [, thread...] ] -- 
allElse [-n]
  • -d delay interval is the unit for delay interval is seconds. The default value is 30s, and is defined in the GUI at the site-level configuration. For a different time-out, use the command-line directly.
  • -p process [,process restarts the indicated processes.
  • -h host is the name of the remote host to run the engine on.
  • -s thread is a comma-separated list of threads to restart.
  • -- separates the script args from engine args.
  • allElse specifies all other arguments are passed to the engine.
  • -n specifies to not run the engine in a service on Windows.

If hcienginerestart is called when the process is not running, then the hcicmd invocation to stop fails.

If it can verify that the process is not running after the delay interval has elapsed, then it attempts to start it with the remaining arguments.

The -p argument can be a process list.

If the process cannot be stopped, then it returns an error after the delay interval has elapsed.

For example, to restart a process:
hcienginerestart -d delay interval -p process

Threads

hcicmd -p process -c "thread_name prestart delay interval"
  • If hcicmd is invoked with thread_name prestart when the process is not running, then it fails to connect. In this case, you can invoke hcienginerun with the thread start args. For example:
    hcicmd -p process -c thread name prestart 
    delay interval
  • If hcicmd is invoked when the process is running but the indicated thread is not, then it starts the thread after the delay interval has elapsed.
  • If hcicmd is invoked when the process is running but the indicated thread has not stopped, then it returns an error. This is returned after the delay interval has elapsed.

Site daemons

hcisitectl [-f] [-h host] [{ -K | -k daemon }] [{ -S | -s daemon}] 
[{ -R | -r daemon} -d delay interval] [-u #users] 
[-A args] 

For site daemons it restarts when the -R or -r argument is used.

  • If hcisitectl is called this way when the daemon is not running, then the invocation to stop fails. If it verifies that the process is not running after the delay interval has elapsed, then it attempts to start it.
  • If it is unable to stop the daemon, then it returns an error after the delay interval has elapsed.
  • If using -R or -r, then the -d argument is required.
  • For example:
    • To restart the MonitorD:
      hcisitectl -r m -d delay interval
    • To restart the Lock Manger:
      hcisitectl -r l -d delay interval 
    • To restart all daemons:
      hcisitectl -R -d delay interval

    The unit for delay interval is seconds. The default value is 30s, and is defined in the GUI at the site-level configuration. For a different time-out, you can change delay interval.