Blame SOURCES/sapconf-check-ntp-bz#1228550.patch

e4ef47
diff -up sapconf-0.98/sapconf.than sapconf-0.98/sapconf
e4ef47
--- sapconf-0.98/sapconf.than	2015-06-12 10:32:02.494997255 +0200
e4ef47
+++ sapconf-0.98/sapconf	2015-06-12 13:59:35.498510271 +0200
e4ef47
@@ -686,7 +686,9 @@ function check_chronyd() {
e4ef47
 
e4ef47
 systemctl status chronyd.service > /dev/null 2>&1
e4ef47
 rc=$?
e4ef47
-if [ $rc -eq 0 ]; then
e4ef47
+systemctl status ntpd.service > /dev/null 2>&1
e4ef47
+rc1=$?
e4ef47
+if [ $rc -eq 0 -o $rc1 -eq 0 ]; then
e4ef47
         out "NTP service is running ... OK"
e4ef47
 else
e4ef47
         rec "NTP Service should be configured and started"