dwatch.conf

Langue: en

Version: 174192 (fedora - 06/07/09)

Section: 5 (Format de fichier)

NAME

dwatch.conf

DESCRIPTION

Dwatch.conf controls the behavior of the dwatch program. The configuration file consists of three columns: directive, argument, and command.

The directive is either the letter P or T. P is for watching a process and T is for watching a TCP port.

The argument is either the process name to look for or the host:port to attempt connecting to. This must be enclosed in double quotes.

The command is what should be run in the event that the process or listener specified in the argument is no longer present.

EXAMPLE

 # restart a failed program
 P "myprog" /etc/init.d/myprog start
 
 # restart a listener that has died
 T "localhost:8893" /etc/init.d/mylistener start
 
 # restart a failed daemon and log it
 P "myprog" echo `date` Restarting myprog >> /var/log/myprog.log && /etc/init.d/myprog start
 

Note that the argument is enclosed in double quotes.

SEE ALSO

dwatch(1)

AUTHOR

Copyright (C) 2001 Ulric Eriksson, <ulric@siag.nu>.