ntp: Fix status call reporting incorrect value

The "status" function called by this script calls "pidof" to get the process id. "pidof" does not expect or operate with a full path.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Keith McRae 2024-09-18 14:31:18 +01:00 committed by Khem Raj
parent 1978e19f86
commit ac20f1d653
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -72,7 +72,7 @@ case "$1" in
startdaemon
;;
status)
status /usr/sbin/ntpd;
status ntpd;
exit $?
;;
*)