chrony: install config file from sources, don't use -s option on startup, remove README
This commit is contained in:
parent
58289e8eb3
commit
3547f6d8be
@ -1,19 +1,20 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
-rw------- root/root etc/chrony.conf
|
||||
-rwxr-xr-x root/root etc/chrony.conf
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/chronyd
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/chronyc
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man1/
|
||||
-rw-r--r-- root/root usr/man/man1/chronyc.1.gz
|
||||
drwxr-xr-x root/root usr/man/man5/
|
||||
-rw-r--r-- root/root usr/man/man5/chrony.conf.5.gz
|
||||
drwxr-xr-x root/root usr/man/man8/
|
||||
-rw-r--r-- root/root usr/man/man8/chronyd.8.gz
|
||||
drwxr-xr-x root/root usr/sbin/
|
||||
-rwxr-xr-x root/root usr/sbin/chronyd
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/man/
|
||||
drwxr-xr-x root/root usr/share/man/man1/
|
||||
-rw-r--r-- root/root usr/share/man/man1/chronyc.1.gz
|
||||
drwxr-xr-x root/root usr/share/man/man5/
|
||||
-rw-r--r-- root/root usr/share/man/man5/chrony.conf.5.gz
|
||||
drwxr-xr-x root/root usr/share/man/man8/
|
||||
-rw-r--r-- root/root usr/share/man/man8/chronyd.8.gz
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/lib/
|
||||
drwxr-xr-x root/root var/lib/chrony/
|
||||
|
@ -1,3 +1,2 @@
|
||||
17bc77d3d2ce942675f9600b60452717 chrony-2.2.tar.gz
|
||||
e31f942cdd3f6f00f41f6de344a4e5e2 chrony.conf
|
||||
d796db9fedfc3ab9cadca2e102caa97b chronyd
|
||||
4bdea4aea28853c7be54ffdb9f6b87a8 chronyd
|
||||
|
@ -5,19 +5,19 @@
|
||||
|
||||
name=chrony
|
||||
version=2.2
|
||||
release=1
|
||||
release=2
|
||||
source=(http://download.tuxfamily.org/$name/$name-$version.tar.gz
|
||||
chronyd chrony.conf)
|
||||
chronyd)
|
||||
|
||||
build () {
|
||||
cd $name-$version
|
||||
|
||||
./configure --prefix=/usr --mandir=/usr/man
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
install -d $PKG/var/{lib,log}/chrony
|
||||
install -d -m 0750 $PKG/var/run/chrony
|
||||
install -D -m 755 $SRC/chronyd $PKG/etc/rc.d/chronyd
|
||||
install -m 600 $SRC/chrony.* $PKG/etc
|
||||
install -D -m 0755 $SRC/chronyd $PKG/etc/rc.d/chronyd
|
||||
install examples/chrony.conf.example1 $PKG/etc/chrony.conf
|
||||
}
|
||||
|
@ -1,25 +0,0 @@
|
||||
README for chrony 2.x
|
||||
|
||||
REQUIREMENTS
|
||||
|
||||
PRE-INSTALL
|
||||
|
||||
POST-INSTALL
|
||||
|
||||
Add up to eight time server of your country to /etc/chrony.conf.
|
||||
A list of public servers can be found here:
|
||||
|
||||
http://www.eecis.udel.edu/~mills/ntp/clock1a.html
|
||||
http://www.eecis.udel.edu/~mills/ntp/clock2a.html
|
||||
|
||||
|
||||
PRECAUTION
|
||||
|
||||
Remove the '/sbin/hwclock ...' entries from /etc/rc.shutdown and
|
||||
/etc/rc. No other software should manipulate the system hardware
|
||||
clock if chronyd is running.
|
||||
|
||||
The start script /etc/rc.d/chronyd has online and offline options.
|
||||
Use this in your ip-up/ip-down scripts to tell chrony whether we are
|
||||
online or offline.
|
||||
|
@ -1,33 +0,0 @@
|
||||
#
|
||||
# /etc/chrony.conf
|
||||
#
|
||||
|
||||
# Change this to some puplic NTP server of your
|
||||
# country, or the server of your local network
|
||||
! server ntp1.ptb.de auto_offline
|
||||
! server ntp1.fau.de auto_offline
|
||||
server pool.ntp.org
|
||||
|
||||
maxupdateskew 100
|
||||
dumponexit
|
||||
log measurements statistics tracking
|
||||
|
||||
# Keep the hardware clock on UTC
|
||||
! rtconutc
|
||||
|
||||
allow 192.168.0/24
|
||||
cmdallow 192.168.0/24
|
||||
cmdallow 127.0.0.1
|
||||
|
||||
driftfile /var/lib/chrony/chrony.drift
|
||||
dumpdir /var/lib/chrony
|
||||
pidfile /var/run/chronyd.pid
|
||||
logdir /var/log/chrony
|
||||
|
||||
# Enable this only if you have enhanced real time
|
||||
# clock support build into your kernel
|
||||
! log rtc
|
||||
! rtcdevice /dev/rtc
|
||||
! rtcfile /var/lib/chrony/chrony.rtc
|
||||
|
||||
# End of file
|
@ -6,7 +6,7 @@
|
||||
SSD=/sbin/start-stop-daemon
|
||||
PROG=/usr/sbin/chronyd
|
||||
PID=/var/run/chronyd.pid
|
||||
OPTS="-s -r"
|
||||
OPTS="-r"
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
|
Loading…
x
Reference in New Issue
Block a user