summaryrefslogtreecommitdiffstats
path: root/source/n/ntp
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-06-12 20:37:03 +0000
committer Eric Hameleers <alien@slackware.com>2023-06-13 00:02:22 +0200
commit7da4809348c684aacb051389cd36e09088933812 (patch)
tree57eca363426e87f91979c0444d00d81adaa3b0af /source/n/ntp
parent32df5704da32e7b74e0aeee3c07f92bf9f741934 (diff)
downloadcurrent-7da4809348c684aacb051389cd36e09088933812.tar.gz
current-7da4809348c684aacb051389cd36e09088933812.tar.xz
Mon Jun 12 20:37:03 UTC 202320230612203703
ap/xorriso-1.5.6.pl01-x86_64-1.txz: Upgraded. d/rust-1.69.0-x86_64-1.txz: Upgraded. n/ntp-4.2.8p17-x86_64-2.txz: Rebuilt. Fixed typo in ntp.conf comments. Fixed logic in ntp.logrotate to allow proper rotation on systems where ntpd is not automatically started at boot. Thanks to allend. x/xkeyboard-config-2.39-noarch-1.txz: Upgraded. testing/packages/rust-1.70.0-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/n/ntp')
-rwxr-xr-xsource/n/ntp/ntp.SlackBuild2
-rw-r--r--source/n/ntp/ntp.conf2
-rw-r--r--source/n/ntp/ntp.logrotate2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/n/ntp/ntp.SlackBuild b/source/n/ntp/ntp.SlackBuild
index 44da1d009..1383d7df6 100755
--- a/source/n/ntp/ntp.SlackBuild
+++ b/source/n/ntp/ntp.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=ntp
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
diff --git a/source/n/ntp/ntp.conf b/source/n/ntp/ntp.conf
index e88603c12..a9c0ce6d0 100644
--- a/source/n/ntp/ntp.conf
+++ b/source/n/ntp/ntp.conf
@@ -4,7 +4,7 @@
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. The
# default stratum is usually 3, but in this case we elect to use stratum
-# 0. Since the server line does not have the prefer keyword, this driver
+# 10. Since the server line does not have the prefer keyword, this driver
# is never used for synchronization, unless no other other
# synchronization source is available. In case the local host is
# controlled by some external source, such as an external oscillator or
diff --git a/source/n/ntp/ntp.logrotate b/source/n/ntp/ntp.logrotate
index 77f7d7b3f..37fd0be15 100644
--- a/source/n/ntp/ntp.logrotate
+++ b/source/n/ntp/ntp.logrotate
@@ -3,6 +3,6 @@
missingok
rotate 4
postrotate
- [ -x /etc/rc.d/rc.ntpd ] && /etc/rc.d/rc.ntpd restart
+ ! [ -x /etc/rc.d/rc.ntpd ] || /etc/rc.d/rc.ntpd restart
endscript
}