commit dc8feb3586abf004b7478dd5343a8b0545354b18
Author: Elan Ruusamäe <[email protected]>
Date: Mon Sep 14 09:34:53 2015 +0300
fix bashism in initscript
chronyd.init | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/chronyd.init b/chronyd.init
old mode 100644
new mode 100755
index d259623..0385b24
--- a/chronyd.init
+++ b/chronyd.init
@@ -6,7 +6,6 @@
# description: Client/server for the Network Time Protocol, \
# this program keeps your computer's clock accurate.
#
-# $Id$
# Source function library
. /etc/rc.d/init.d/functions
@@ -56,11 +55,12 @@ EOF
chronycpid=$!
# chronyc will hang if the daemon doesn't respond, kill it after 3 s
+ #'
(sleep 3; kill $chronycpid) < /dev/null > /dev/null 2>&1 &
killerpid=$!
- wait $chronycpid &> /dev/null
- kill $killerpid &> /dev/null || echo "chronyd not responding"
+ wait $chronycpid >/dev/null 2>&1
+ kill $killerpid >/dev/null 2>&1 || echo "chronyd not responding"
) | grep -v '200 OK'
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chrony.git/commitdiff/dc8feb3586abf004b7478dd5343a8b0545354b18
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit