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

6d26f9
diff -ur watchdog-5.15.old/watchdog.8 watchdog-5.15/watchdog.8
6d26f9
--- watchdog-5.15.old/watchdog.8	2016-02-26 12:05:00.000000000 +0000
6d26f9
+++ watchdog-5.15/watchdog.8	2018-02-13 08:54:00.860681339 +0000
6d26f9
@@ -215,6 +215,7 @@
6d26f9
 .BR watchdog .
6d26f9
 So you can for instance restart the server from your
6d26f9
 .IR repair-binary .
6d26f9
+See the Systemd section below for additinal information.
6d26f9
 .PP
6d26f9
 .B watchdog
6d26f9
 will try periodically to fork itself to see whether the process
6d26f9
@@ -241,6 +242,8 @@
6d26f9
 considered unreachable causing a soft reboot or action from the
6d26f9
 repair binary.
6d26f9
 .PP
6d26f9
+To start the watchdog when network is available see the Systemd section below.
6d26f9
+.PP
6d26f9
 .B watchdog
6d26f9
 can run an external command for user-defined tests. A return code not equal 0
6d26f9
 means an error occurred and watchdog should react. If the external command is
6d26f9
@@ -350,6 +353,9 @@
6d26f9
 246
6d26f9
 Free for personal watchdog-specific use (was \-10 as an unsigned 8\-bit
6d26f9
 number).
6d26f9
+.PP
6d26f9
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
6d26f9
+for your test-binary configuration.
6d26f9
 .TP
6d26f9
 245
6d26f9
 Reserved for an unknown result, for example a slow background test that is
6d26f9
@@ -377,6 +383,9 @@
6d26f9
 controls the number of successive repair attempts that report 0 (i.e. success) but
6d26f9
 fail to clear the tested fault. If this is exceeded then a reboot takes place. If set
6d26f9
 to zero then a reboot can always be blocked by the repair program reporting success.
6d26f9
+.PP
6d26f9
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
6d26f9
+for your repair-binary configuration.
6d26f9
 .SH "TEST DIRECTORY"
6d26f9
 Executables placed in the test directory are discovered by watchdog on
6d26f9
 startup and are automatically executed.  They are bounded time-wise by
6d26f9
@@ -415,6 +424,27 @@
6d26f9
 repair-maximum
6d26f9
 also controls the number of successive repair attempts that report success
6d26f9
 (return 0) but fail to clear the fault.
6d26f9
+.SH SYSTEMD
6d26f9
+To start watchdog after the network is available:
6d26f9
+.PP
6d26f9
+.br
6d26f9
+systemctl disable watchdog
6d26f9
+.br
6d26f9
+systemctl enable NetworkManager-wait-online
6d26f9
+.br
6d26f9
+systemctl enable watchdog-ping
6d26f9
+.PP
6d26f9
+
6d26f9
+When using custom service pid check with custom service
6d26f9
+systemd unit file please be aware the "Requires="
6d26f9
+does dependent service deactivation.
6d26f9
+Using "Before=watchdog.service" or "Before=watchdog-ping.service"
6d26f9
+in the custom service unit file may be the desired operation instead.
6d26f9
+See systemd.unit documentation for more details.
6d26f9
+
6d26f9
+.SH SELINUX
6d26f9
+The directories /etc/watchdog.d/ and /usr/libexec/watchdog/scripts/ are
6d26f9
+recognized locations for custom executables.
6d26f9
 .SH BUGS
6d26f9
 None known so far.
6d26f9
 .SH AUTHORS
6d26f9
@@ -433,4 +463,4 @@
6d26f9
 The pid file of the running
6d26f9
 .BR watchdog .
6d26f9
 .SH "SEE ALSO"
6d26f9
-.BR watchdog.conf (5)
6d26f9
+.BR watchdog.conf (5), systemd.unit (5)
6d26f9
diff -ur watchdog-5.15.old/watchdog.conf watchdog-5.15/watchdog.conf
6d26f9
--- watchdog-5.15.old/watchdog.conf	2016-02-26 12:05:00.000000000 +0000
6d26f9
+++ watchdog-5.15/watchdog.conf	2018-02-13 08:52:18.899721271 +0000
6d26f9
@@ -16,6 +16,8 @@
6d26f9
 #min-memory		= 1
6d26f9
 #allocatable-memory	= 1
6d26f9
 
6d26f9
+# With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
6d26f9
+# or /etc/watchdog.d/ for your test-binary and repair-binary configuration.
6d26f9
 #repair-binary		= /usr/sbin/repair
6d26f9
 #repair-timeout		= 60
6d26f9
 #test-binary		=
6d26f9
@@ -45,5 +47,12 @@
6d26f9
 realtime		= yes
6d26f9
 priority		= 1
6d26f9
 
6d26f9
+# When using custom service pid check with custom service
6d26f9
+# systemd unit file please be aware the "Requires="
6d26f9
+# does dependent service deactivation.
6d26f9
+# Using "Before=watchdog.service" or "Before=watchdog-ping.service"
6d26f9
+# in the custom service unit file may be the desired operation instead.
6d26f9
+# See man 5 systemd.unit for more details.
6d26f9
+#
6d26f9
 # Check if rsyslogd is still running by enabling the following line
6d26f9
 #pidfile		= /var/run/rsyslogd.pid
6d26f9
diff -ur watchdog-5.15.old/watchdog.conf.5 watchdog-5.15/watchdog.conf.5
6d26f9
--- watchdog-5.15.old/watchdog.conf.5	2016-02-26 12:05:00.000000000 +0000
6d26f9
+++ watchdog-5.15/watchdog.conf.5	2018-02-13 08:52:18.898721271 +0000
6d26f9
@@ -105,6 +105,7 @@
6d26f9
 pidfile = <pidfilename>
6d26f9
 Set pidfile name for server test mode.
6d26f9
 This option can be given as often as you like to check several servers.
6d26f9
+See the Systemd section in watchdog (8) for more information.
6d26f9
 .TP
6d26f9
 ping = <ip-addr>
6d26f9
 Set IPv4 address for ping mode.
6d26f9
@@ -119,6 +120,8 @@
6d26f9
 .TP
6d26f9
 test-binary = <testbin>
6d26f9
 Execute the given binary to do some user defined tests.
6d26f9
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
6d26f9
+for your test-binary configuration.
6d26f9
 .TP
6d26f9
 test-timeout = <timeout in seconds>
6d26f9
 User defined tests may only run for <timeout> seconds. Set to 0 for unlimited.
6d26f9
@@ -126,6 +129,8 @@
6d26f9
 repair-binary = <repbin>
6d26f9
 Execute the given binary in case of a problem instead of shutting down the
6d26f9
 system.
6d26f9
+With enforcing SELinux policy please use the /usr/libexec/watchdog/scripts/
6d26f9
+for your repair-binary configuration.
6d26f9
 .TP
6d26f9
 repair-timeout = <timeout in seconds>
6d26f9
 repair command may only run for <timeout> seconds. Set to 0 for 'unlimited', but
6d26f9
@@ -156,6 +161,7 @@
6d26f9
 .TP
6d26f9
 test-directory = <test directory>
6d26f9
 Set the directory to run user test/repair scripts.  Default is '/etc/watchdog.d'
6d26f9
+The /etc/watchdog.d/ is recognized by SELinux policy.
6d26f9
 See the Test Directory section in watchdog(8) for more information.
6d26f9
 .TP
6d26f9
 log-dir = <log directory>