Blame SOURCES/0004-watchdog-5.13-rhseldoc.patch

0864ef
diff -up ./watchdog.8.rhseldoc ./watchdog.8
0864ef
--- ./watchdog.8.rhseldoc	2013-02-01 12:15:44.000000000 +0100
0864ef
+++ ./watchdog.8	2013-11-07 14:57:52.460258672 +0100
0864ef
@@ -190,6 +190,7 @@ by
0864ef
 .BR watchdog . 
0864ef
 So you can for instance restart the server from your
0864ef
 .IR repair-binary .
0864ef
+See the Systemd section below for additinal information.
0864ef
 .PP
0864ef
 .B watchdog 
0864ef
 will try periodically to fork itself to see whether the process
0864ef
@@ -216,6 +217,8 @@ a given interface for traffic. If no tra
0864ef
 considered unreachable causing a soft reboot or action from the 
0864ef
 repair binary.
0864ef
 .PP
0864ef
+To start the watchdog when network is available see the Systemd section below.
0864ef
+.PP
0864ef
 .B watchdog can run an external command for user-defined tests. A return code
0864ef
 not equal 0 means an error occured and watchdog should react. If the external
0864ef
 command is killed by an uncaught signal this is considered an error by watchdog
0864ef
@@ -317,6 +320,9 @@ Child process did not return in time.
0864ef
 .TP
0864ef
 \-10 
0864ef
 Free for personal use.
0864ef
+.PP
0864ef
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
0864ef
+for your test-binary configuration.
0864ef
 .SH "REPAIR BINARY"
0864ef
 The repair binary is started with one parameter: the error number that
0864ef
 caused 
0864ef
@@ -333,6 +339,9 @@ are using the real-time properties since
0864ef
 .B watchdog 
0864ef
 will wait for
0864ef
 the return of this binary before proceeding.
0864ef
+.PP
0864ef
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
0864ef
+for your repair-binary configuration.
0864ef
 .SH "TEST DIRECTORY"
0864ef
 Executables placed in the test directory are discovered by watchdog on 
0864ef
 startup and are automatically executed.  They are bounded time-wise by
0864ef
@@ -365,6 +374,27 @@ return a non-zero value so the machine w
0864ef
 Note that the watchdog daemon may interpret and act upon any of the reserved
0864ef
 return codes noted in the Check Binary section prior to calling a given
0864ef
 command in "repair" mode.
0864ef
+.SH SYSTEMD
0864ef
+To start watchdog after the network is available:
0864ef
+.PP
0864ef
+.br
0864ef
+systemctl disable watchdog
0864ef
+.br
0864ef
+systemctl enable NetworkManager-wait-online
0864ef
+.br
0864ef
+systemctl enable watchdog-ping
0864ef
+.PP
0864ef
+
0864ef
+When using custom service pid check with custom service
0864ef
+systemd unit file please be aware the "Requires="
0864ef
+does dependent service deactivation.
0864ef
+Using "Before=watchdog.service" or "Before=watchdog-ping.service"
0864ef
+in the custom service unit file may be the desired operation instead.
0864ef
+See systemd.unit documentation for more details.
0864ef
+
0864ef
+.SH SELINUX
0864ef
+The directories /etc/watchdog.d/ and /usr/libexec/watchdog/scripts/ are
0864ef
+recognized locations for custom executables.
0864ef
 .SH BUGS
0864ef
 None known so far.
0864ef
 .SH AUTHORS
0864ef
@@ -383,4 +413,4 @@ The watchdog device.
0864ef
 The pid file of the running 
0864ef
 .BR watchdog .
0864ef
 .SH "SEE ALSO"
0864ef
-.BR watchdog.conf (5)
0864ef
+.BR watchdog.conf (5), systemd.unit (5)
0864ef
diff -up ./watchdog.conf.5.rhseldoc ./watchdog.conf.5
0864ef
--- ./watchdog.conf.5.rhseldoc	2013-02-01 12:15:44.000000000 +0100
0864ef
+++ ./watchdog.conf.5	2013-11-07 14:51:20.358128245 +0100
0864ef
@@ -84,6 +84,7 @@ no matter what.
0864ef
 pidfile = <pidfilename>
0864ef
 Set pidfile name for server test mode.
0864ef
 This option can be given as often as you like to check several servers.
0864ef
+See the Systemd section in watchdog (8) for more information.
0864ef
 .TP
0864ef
 ping = <ip-addr>
0864ef
 Set IP address for ping mode.
0864ef
@@ -97,6 +98,8 @@ interfaces.
0864ef
 .TP
0864ef
 test-binary = <testbin>
0864ef
 Execute the given binary to do some user defined tests.
0864ef
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
0864ef
+for your test-binary configuration.
0864ef
 .TP
0864ef
 test-timeout = <timeout in seconds>
0864ef
 User defined tests may only run for <timeout> seconds. Set to 0 for unlimited.
0864ef
@@ -104,6 +107,8 @@ User defined tests may only run for 
0864ef
 repair-binary = <repbin>
0864ef
 Execute the given binary in case of a problem instead of shutting down the
0864ef
 system.
0864ef
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
0864ef
+for your repair-binary configuration.
0864ef
 .TP
0864ef
 repair-timeout = <timeout in seconds>
0864ef
 repair command may only run for <timeout> seconds. Set to 0 for unlimited.
0864ef
@@ -122,6 +127,7 @@ Set the schedule priority for realtime m
0864ef
 .TP
0864ef
 test-directory = <test directory>
0864ef
 Set the directory to run user test/repair scripts.  Default is '/etc/watchdog.d'
0864ef
+The /etc/watchdog.d/ is recognized by SELinux policy.
0864ef
 See the Test Directory section in watchdog(8) for more information.
0864ef
 .TP
0864ef
 log-dir = <log directory>
0864ef
diff -up ./watchdog.conf.rhseldoc ./watchdog.conf
0864ef
--- ./watchdog.conf.rhseldoc	2013-02-01 12:15:44.000000000 +0100
0864ef
+++ ./watchdog.conf	2013-11-07 14:47:49.955156208 +0100
0864ef
@@ -15,6 +15,8 @@
0864ef
 # To get the real size, check how large the pagesize is on your machine.
0864ef
 #min-memory		= 1
0864ef
 
0864ef
+# With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
0864ef
+# or /etc/watchdog.d/ for your test-binary and repair-binary configuration.
0864ef
 #repair-binary		= /usr/sbin/repair
0864ef
 #repair-timeout		= 
0864ef
 #test-binary		= 
0864ef
@@ -37,6 +39,13 @@
0864ef
 realtime		= yes
0864ef
 priority		= 1
0864ef
 
0864ef
+# When using custom service pid check with custom service
0864ef
+# systemd unit file please be aware the "Requires="
0864ef
+# does dependent service deactivation.
0864ef
+# Using "Before=watchdog.service" or "Before=watchdog-ping.service"
0864ef
+# in the custom service unit file may be the desired operation instead.
0864ef
+# See man 5 systemd.unit for more details.
0864ef
+#
0864ef
 # Check if rsyslogd is still running by enabling the following line
0864ef
 #pidfile		= /var/run/rsyslogd.pid   
0864ef