SC_WATCH(8)
MAINTENANCE COMMANDS
SC_WATCH(8)
NAME
sc_watch - watch-dog timer for SCore-D

SYNOPSIS
sc_watch -g group [-t ] [-l local] [-r remote] [-n retry] [-a abort] [-f file] scored args...

DESCRIPTION
sc_watch is a watch-dog timer designed for SCore-D. At first, sc_watch create SCOUT environment on a hostgroup specified, and execute a given command within the scout environment. sc_watch exepcts to be stimulated by the invoked command. If a timeout error happens, sc_watch shutdown the SCOUT environment. After this, local sequential command running on local host followed by remote command running on the sma ehost group is executed. This procedure is repeated infinitely.

The local command is a unix command or a shell script invoked by the Unix system(2) function, to let some users know the happening. The remote commands might be used for clean-up some side effects on cluster hosts.

Sending SIGHUP to the sc_watch process, currently running SCore-D is terminated immediately, and journaling file (see below) is re-opened, then, SCore-D is restarted.

OPTIONS
-t intval
Specify time interval of watch-dog timer in minutes. Default is ten minutes.

-f logfile
Specify a journaling file. All output from SCore-D is saved into the file. When this option is specified, sc_watch process becomes a daemon process. If SIGHUP signal is delivered, sc_watch terminates current SCore-D process, and starts the new restart sequence. The jouranling file is closed and re-opened.

-g groupname
Specify a host group name where SCore-D runs on. This options must be present.

-l local_command
Specify a Unix command invoked when SCore-D unexpectedly terminates, and executed at local host.

-r remote_command
Specify a remote command invoked when SCore-D unexpectedly terminates.

-n retry_max
Specify the number of retry for rebooting SCore-D. By default 10 is set.

-a local_command
When the above retry count exceeds the limit, then the Unix command specified by this option is exectued and then sc_watch terminates.

SEE ALSO
scored(8), Automatic Operation and High Availability of SCore-D

$Id: sc_watch.html,v 1.4 2002/10/16 11:25:35 hirose Exp $