summaryrefslogtreecommitdiff
path: root/source/n/ntp
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/ntp')
-rwxr-xr-xsource/n/ntp/ntp.SlackBuild2
-rw-r--r--source/n/ntp/rc.ntpd10
2 files changed, 6 insertions, 6 deletions
diff --git a/source/n/ntp/ntp.SlackBuild b/source/n/ntp/ntp.SlackBuild
index c4143f3f..7f8be710 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:-6}
+BUILD=${BUILD:-7}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
diff --git a/source/n/ntp/rc.ntpd b/source/n/ntp/rc.ntpd
index d1ad4484..9d1e3e88 100644
--- a/source/n/ntp/rc.ntpd
+++ b/source/n/ntp/rc.ntpd
@@ -11,9 +11,9 @@ ntpd_start() {
# Stop ntpd:
ntpd_stop() {
echo -n "Stopping NTP daemon..."
- if [ -r /var/run/ntpd.pid ]; then
- kill -HUP $(cat /var/run/ntpd.pid)
- rm -f /var/run/ntpd.pid
+ if [ -r /run/ntpd.pid ]; then
+ kill -HUP $(cat /run/ntpd.pid)
+ rm -f /run/ntpd.pid
else
killall -HUP -q ntpd
fi
@@ -29,8 +29,8 @@ ntpd_restart() {
# Check if ntpd is running
ntpd_status() {
- if [ -e /var/run/ntpd.pid ]; then
- echo "ntpd is running as pid $(cat /var/run/ntpd.pid)."
+ if [ -e /run/ntpd.pid ]; then
+ echo "ntpd is running as pid $(cat /run/ntpd.pid)."
else
echo "ntpd is stopped."
exit 1