From owner-freebsd-doc@freebsd.org Wed Aug 30 05:37:30 2017 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B440BDEFC5D for ; Wed, 30 Aug 2017 05:37:30 +0000 (UTC) (envelope-from tarjei99@gmail.com) Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 796978420D for ; Wed, 30 Aug 2017 05:37:30 +0000 (UTC) (envelope-from tarjei99@gmail.com) Received: by mail-oi0-x22b.google.com with SMTP id k77so43648704oib.2 for ; Tue, 29 Aug 2017 22:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3WyIe4jpVjlhK/3oeDNG4BAJJJZ8Ubj7Jl96ejrbDOQ=; b=QAZitI/jnGWJ56SaHnUGMTuvk+qF2akk8E2PgswlQFxNnO2V8eVvK8v4I1q60qKVmr jJ7rJsJodlaZwfGb7TUAdi+UGv2XTE4LLQnuKbGXDkdtyIw/izpW7jyZAcbUlFAeyr3V Wwiw8Dpy8Nlu1xqbZSyhi1YtDOsSEDiPrl5VK0Ohs6s7QXBf9QEKFPSzVnlTVq4/7uRD 8JvlGf0LyTQOWzjo9x1hVlDtmgC8X+OT3VSvi56n2hMu1nAXRPSya7+R45/Eogj0NYOW wAKuQDgLYyXKEdsH/5ao+2bvxTA4jeQS7UeI1/xVU1Ac8Wk/fP4tYxzx+Zb0tXzAAy+m NnnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3WyIe4jpVjlhK/3oeDNG4BAJJJZ8Ubj7Jl96ejrbDOQ=; b=RUDkVnhpZ+huae2SR/Acq4mcl7zHugh0y3SMuPgDQzqHmV+L3sU/efnbQGEb5sX+uX LwURjCBy4t6omlztTd6Xr6cgeio255ziNfAs+wR4jjK4DrXEDs1LKIXippOTYD0BC9/a hVJoE8L3vnK6WOlgJkAp3zMkAQ6M/10xAmTuv34chE44yWK4WdUcFMgIR6JvwKk7oW4g 9zscU+J6lvlS8I4fL8+/Y8te0dOD1WMcAz1tEi0jcO+91GKxSgFrsY++wbef4XtDx9HK BABkaM1wPc2fNMeJqYNu8mWVS0bAR8DA/pZfkEZUErNLoFUKMgw4w3afuI38ndclxPuZ n5zg== X-Gm-Message-State: AHYfb5h3EjqWMU5Q4DVVlrnB50JVXoDG4pbVEjUNx8+XnDRacjMW6jpK yllq8TD91oX3E+GZ12HlFGDYAXSOpJR/ X-Received: by 10.202.72.19 with SMTP id v19mr450410oia.305.1504071449541; Tue, 29 Aug 2017 22:37:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.35.244 with HTTP; Tue, 29 Aug 2017 22:37:29 -0700 (PDT) From: Tarjei Jensen Date: Wed, 30 Aug 2017 07:37:29 +0200 Message-ID: Subject: FAQ section 10.17 : I cannot change the time on my system by more than one second! How do I get around this? To: freebsd-doc@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2017 05:37:30 -0000 Hi, Changing the time can be done by root executing /usr/sbin/ntpd. It will depend on the /etc/ntp.conf file having functioning ntp servers. ntpd -n -g -g will set the time and not fork (-n option). It logs to stdout or stderr and this output can be seen by the user. When the time and date is ok, use ^C to stop the program. This command can be necessary with all computers that don't have a real time clock. e.g. The Raspberry PI computers. It may be worthwhile for owners to modify the startup script to start the ntpd daemon with the -g -g options as standard. This is done by adding or modifying the ntpd_flags variable : in /etc/rc.d/ntpd The long term solution is to make sure ntpd is running as a daemon by modifying the /etc/rc.conf file and adding ntpd_enable="YES" ntpd can then be started on the command line with the command service ntpd start Greetings,