pull/93/head
Igor Zalatov (from Citadel PC) 2021-12-11 01:03:01 +03:00
parent a14bac02f5
commit ffde6843ea
1 changed files with 2 additions and 2 deletions
general/overlay/etc/init.d

View File

@ -3,7 +3,7 @@
DAEMON="ntpd"
PIDFILE="/var/run/$DAEMON.pid"
NTPD_ARGS=""
NTPD_ARGS="-n"
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
@ -14,7 +14,7 @@ start() {
printf 'Starting %s: ' "$DAEMON"
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
-- -n $NTPD_ARGS
-- $NTPD_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"