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

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