{
    "mode": "man",
    "parameter": "ntpwait",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/ntpwait/8/json",
    "generated": "2026-10-31T02:43:53Z",
    "synopsis": "ntpwait [-vV] [-n number] [-s secs]",
    "sections": {
        "NAME": {
            "content": "ntpwait - wait for ntpd to stabilize the system clock\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ntpwait [-vV] [-n number] [-s secs]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The ntpwait program blocks until ntpd is in synchronized state. This can be useful at boot\ntime, to delay the boot sequence until after \"ntpd -g\" has set the time.\n\nntpwait will send at most number queries to ntpd(8), sleeping for secs seconds after each\nstatus return that says ntpd(8) has not yet produced a synchronized and stable system clock.\n\nntpwait will do this quietly, unless the -v flag is provided.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "-n number, --tries=number\nNumber of times to check ntpd. This option takes an integer number as its argument. The\ndefault number for this option is: 100.\n\nThe maximum number of times we will check ntpd to see if it has been able to synchronize\nand stabilize the system clock.\n\n-s secs-between-tries, --sleep=secs-between-tries\nHow long to sleep between tries. This option takes an integer number as its argument. The\ndefault secs-between-tries for this option is: 6.\n\nWe will sleep for secs-between-tries after each query of ntpd that returns \"the time is\nnot yet stable\".\n",
            "subsections": [
                {
                    "name": "-v, --verbose",
                    "content": "Be verbose.\n\nBy default, ntpwait is silent. With this option, ntpwait will provide status information,\nincluding time to synchronization in seconds.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-V, --version",
                    "content": "Print the version string and exit.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "One of the following exit values will be returned:\n\n0\nSuccessful program execution.\n\n1\nThe operation failed or the command syntax was not valid.\n\n2\nOperation was interrupted by signal.\n\nNTPsec                                       2024-04-01                                   NTPWAIT(8)",
            "subsections": []
        }
    },
    "summary": "ntpwait - wait for ntpd to stabilize the system clock",
    "flags": [
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Be verbose. By default, ntpwait is silent. With this option, ntpwait will provide status information, including time to synchronization in seconds."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Print the version string and exit."
        }
    ],
    "examples": [],
    "see_also": []
}