]> git.pld-linux.org Git - packages/chrony.git/commitdiff
fix bashism in initscript
authorElan Ruusamäe <glen@delfi.ee>
Mon, 14 Sep 2015 06:34:53 +0000 (09:34 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 14 Sep 2015 06:34:53 +0000 (09:34 +0300)
chronyd.init [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d259623..0385b24
@@ -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'
 }
 
This page took 0.147349 seconds and 4 git commands to generate.