1DWATCH.CONF(5)                File Formats Manual               DWATCH.CONF(5)
2
3
4

NAME

6       dwatch.conf
7
8

DESCRIPTION

10       Dwatch.conf  controls the behavior of the dwatch program.  The configu‐
11       ration file consists of three columns: directive,  argument,  and  com‐
12       mand.
13
14       The directive is either the letter P or T.  P is for watching a process
15       and T is for watching a TCP port.
16
17       The argument is either the process name to look for or the host:port to
18       attempt connecting to.  This must be enclosed in double quotes.
19
20       The command is what should be run in the event that the process or lis‐
21       tener specified in the argument is no longer present.
22
23

EXAMPLE

25       # restart a failed program
26       P "myprog" /etc/init.d/myprog start
27
28       # restart a listener that has died
29       T "localhost:8893" /etc/init.d/mylistener start
30
31       # restart a failed daemon and log it
32       P "myprog" echo `date` Restarting myprog >> /var/log/myprog.log && /etc/init.d/myprog start
33
34       Note that the argument is enclosed in double quotes.
35
36

SEE ALSO

38       dwatch(1)
39
40

AUTHOR

42       Copyright (C) 2001 Ulric Eriksson, <ulric@siag.nu>.
43
44
45
46
47                                     LOCAL                      DWATCH.CONF(5)
Impressum