Blame man/fixproc.1.def

Packit Service b38f0b
.TH fixproc 1 "16 Nov 2006" VVERSIONINFO "Net-SNMP"
Packit Service b38f0b
.SH NAME
Packit Service b38f0b
fixproc - Fixes a process by performing the specified action.
Packit Service b38f0b
.SH SYNOPSIS
Packit Service b38f0b
.PP
Packit Service b38f0b
.B fixproc
Packit Service b38f0b
[\fI\-min n\fR]
Packit Service b38f0b
[\fI\-max n\fR]
Packit Service b38f0b
[\fI\-check | \-kill | \-restart | \-exist | \-fix\fR]
Packit Service b38f0b
proc \.\.\.
Packit Service b38f0b
.SH DESCRIPTION
Packit Service b38f0b
.PP
Packit Service b38f0b
Fixes a process named "proc" by performing the specified action.  The
Packit Service b38f0b
actions can be check, kill, restart, exist, or fix.  The action is specified
Packit Service b38f0b
on the command line or is read from a default database, which describes
Packit Service b38f0b
the default action to take for each process.  The database format and
Packit Service b38f0b
the meaning of each action are described below.
Packit Service b38f0b
.SH OPTIONS
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-min n
Packit Service b38f0b
minimum number of processes that should be running, defaults to 1
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-max n
Packit Service b38f0b
maximum number of processes that should be running, defaults to 1
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-check
Packit Service b38f0b
check process against database /local/etc/fixproc.conf.
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-kill
Packit Service b38f0b
kill process, wait 5 seconds, kill \-9 if still exist
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-restart
Packit Service b38f0b
kill process, wait 5 seconds, kill \-9 if still exist, then start again
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-exist
Packit Service b38f0b
checks if proc exists in ps && (min <= num. of processes <= max)
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-fix
Packit Service b38f0b
check process against database /local/etc/fixproc.conf. Perform defined
Packit Service b38f0b
action, if check fails.