ntp: add status for initscript
cover ntp: add status for initscript
From: Wenzong Fan <[email protected]>
Get /etc/init.d/ntpd support options 'status'.
The following changes since commit 71d2fe7c9e2681fede255d7f5b430d63a122ab18:
vim: add ncurses-terminfo-base as a runtime dependency (2014-10-18 10:47:43 +0200)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/ntpd-status
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/ntpd-status
Wenzong Fan (1):
ntp: add status for initscript
meta-networking/recipes-support/ntp/files/ntpd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
PATCH 1/1 ntp: add status for initscript
From: Wenzong Fan <[email protected]>
Signed-off-by Wenzong Fan <[email protected]>
--- meta-networking/recipes-support/ntp/files/ntpd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta-networking/recipes-support/ntp/files/ntpd +8 -1
@@ -20,6 +20,9 @@ test -x $DAEMON -a -r /etc/ntp.conf || exit 0 # rcS contains TICKADJ test -r /etc/default/rcS && . /etc/default/rcS +# Source function library. +. /etc/init.d/functions + # Functions to do individual actions settick(){ # If TICKADJ is set we *must* adjust it before we start, because the
@@ -68,8 +71,12 @@ case "$1" in stopdaemon startdaemon ;; + status) + status /usr/sbin/ntpd; + exit $? + ;; *) - echo "Usage: ntpd { start | stop | restart | reload }" >&2 + echo "Usage: ntpd { start | stop | status | restart | reload }" >&2 exit 1 ;; esac
Signature · 1 line
1.7.9.5