rpms/dwatch/EL-4 dwatch.conf.5, NONE, 1.1 dwatch.spec, 1.1, 1.2 dwatch.5, 1.1, NONE

Bernard Johnson (bjohnson) fedora-extras-commits at redhat.com
Fri Jun 1 00:48:17 UTC 2007


Author: bjohnson

Update of /cvs/pkgs/rpms/dwatch/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12907/EL-4

Modified Files:
	dwatch.spec 
Added Files:
	dwatch.conf.5 
Removed Files:
	dwatch.5 
Log Message:
take junk out of default config file and just reference man page
change man page from dwatch(5) to dwatch.conf(5)
give a more complex example in dwatch.conf(5) man page



--- NEW FILE dwatch.conf.5 ---
.TH DWATCH.CONF 5 LOCAL

.SH NAME
dwatch.conf

.SH DESCRIPTION
.I 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.

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

Note that the argument is enclosed in double quotes.

.SH SEE ALSO
dwatch(1)

.SH AUTHOR
Copyright (C) 2001 Ulric Eriksson, <ulric at siag.nu>.



Index: dwatch.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dwatch/EL-4/dwatch.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dwatch.spec	29 May 2007 21:58:45 -0000	1.1
+++ dwatch.spec	1 Jun 2007 00:47:42 -0000	1.2
@@ -1,6 +1,6 @@
 Name:           dwatch
 Version:        0.1.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A program that watches over other programs
 
 Group:          Applications/System
@@ -9,7 +9,7 @@
 Source0:        ftp://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz
 Source1:        dwatch.cron
 Source2:        dwatch.conf
-Source3:        dwatch.5
+Source3:        dwatch.conf.5
 Patch0:         dwatch-Makefile.patch
 Patch1:         dwatch-manpage.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -43,7 +43,7 @@
 
 install -p -m 0644 %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dwatch
 install -p -m 0644 %SOURCE2 $RPM_BUILD_ROOT/%{_sysconfdir}/
-install -p -m 0644 %SOURCE3 $RPM_BUILD_ROOT/%{_mandir}/man5/dwatch.5
+install -p -m 0644 %SOURCE3 $RPM_BUILD_ROOT/%{_mandir}/man5/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -60,6 +60,11 @@
 
 
 %changelog
+* Thu May 31 2007 Bernard Johnson <bjohnson at symetrix.com> - 0.1.1-3
+- take junk out of default config file and just reference man page
+- change man page from dwatch(5) to dwatch.conf(5)
+- give a more complex example in dwatch.conf(5) man page
+
 * Thu May 24 2007 Bernard Johnson <bjohnson at symetrix.com> - 0.1.1-2
 - fix dwatch.5 man page to use double quotes around argument
 


--- dwatch.5 DELETED ---




More information about the fedora-extras-commits mailing list