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