update to 1.25-pre1
This commit is contained in:
parent
1b2efd7b34
commit
a657955c15
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
chrony-1.24.tar.gz
|
||||
timepps.h
|
||||
chrony-1.24-20100428git73d775.patch.gz
|
||||
/timepps.h
|
||||
/chrony-1.25-pre1.tar.gz
|
||||
|
10
chrony.spec
10
chrony.spec
@ -1,7 +1,7 @@
|
||||
%define gitpatch 20100428git73d775
|
||||
%define prerelease -pre1
|
||||
Name: chrony
|
||||
Version: 1.24
|
||||
Release: 4.%{?gitpatch}%{?dist}
|
||||
Version: 1.25
|
||||
Release: 0.1.pre1%{?gitpatch}%{?dist}
|
||||
Summary: An NTP client/server
|
||||
|
||||
Group: System Environment/Daemons
|
||||
@ -17,7 +17,7 @@ Source5: chrony.logrotate
|
||||
Source6: timepps.h
|
||||
Source7: chrony.nm-dispatcher
|
||||
Source8: chrony.dhclient
|
||||
Patch0: chrony-%{version}-%{gitpatch}.patch.gz
|
||||
%{?gitpatch:Patch0: chrony-%{version}-%{gitpatch}.patch.gz}
|
||||
Patch1: chrony-retryres.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
@ -37,7 +37,7 @@ in permanently connected environments.
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{?prerelease}
|
||||
mkdir pps; cp -p %{SOURCE6} pps
|
||||
%patch0 -p1
|
||||
%{?gitpatch:%patch0 -p1}
|
||||
%patch1 -p1 -b .retryres
|
||||
|
||||
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
||||
|
12
chronyd.init
12
chronyd.init
@ -48,20 +48,10 @@ chrony_command() {
|
||||
commandkey=$(get_key $commandkeyid)
|
||||
[ -z "$commandkey" ] && return 2
|
||||
|
||||
! (
|
||||
$chronyc <<EOF &
|
||||
$chronyc <<EOF | grep -v '200 OK'
|
||||
password $commandkey
|
||||
$1
|
||||
EOF
|
||||
chronycpid=$!
|
||||
|
||||
# chronyc will hang if the daemon doesn't respond, kill it after 4 s
|
||||
(sleep 4; kill $chronycpid) < /dev/null &> /dev/null &
|
||||
killerpid=$!
|
||||
|
||||
wait $chronycpid &> /dev/null
|
||||
kill $killerpid &> /dev/null || echo "chronyd not responding"
|
||||
) | grep -v '200 OK'
|
||||
}
|
||||
|
||||
generate_commandkey() {
|
||||
|
Loading…
Reference in New Issue
Block a user