{
    "content": [
        {
            "type": "text",
            "text": "# update-leap(1) (man)\n\n**Summary:** update-leap — leap-seconds file manager/updater\n\n**Synopsis:** update-leap [-flags] [-flag [value]] [--option-name[[=| ]value]]\nAll arguments must be options.\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -s | --source-url | — | The URL of the master copy of the leapseconds file. Specify the URL of the master copy to download $LEAPSRC |\n| -4 | --ipv4 | — | Use only IPv4 addresses for DNS name resolution. This option must not appear in combi‐ nation with any of the following  |\n| -d | --destination | — | Filename on the local system. The name to use to store the leapfile on the local system. $LEAPFILE |\n| -e | --expiration | — | Refresh the leapfile this long before it expires. Specify how long before expiration the file is to be refreshed Units a |\n| -f | --ntp-conf-file | — | Location of the ntp.conf file. Specify location of ntp.conf (used to make sure leapfile directive is present and to defa |\n| -F | --force-update | — | Force update of the leapfile. Force update even if current file is OK and not close to expiring. |\n| — | --dont-wait | — | Don't wait for keystroke between plots. -?, --help Display usage information and exit. -!, --more-help Pass the extended |\n| -v | --version | — | Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright informa |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (17 lines)\n- **OPTIONS** (1 lines) — 8 subsections\n  - -s --source-url (4 lines)\n  - -4 --ipv4 (27 lines)\n  - -d --destination (4 lines)\n  - -e --expiration (5 lines)\n  - -f --ntp-conf-file (5 lines)\n  - -F --force-update (4 lines)\n  - --dont-wait (9 lines)\n  - -v --version (3 lines)\n- **USAGE** (2 lines)\n- **EXIT STATUS** (12 lines)\n- **AUTHORS** (2 lines)\n- **NOTES** (3 lines)\n\n## Full Content\n\n### NAME\n\nupdate-leap — leap-seconds file manager/updater\n\n### SYNOPSIS\n\nupdate-leap [-flags] [-flag [value]] [--option-name[[=| ]value]]\n\nAll arguments must be options.\n\n### DESCRIPTION\n\nupdate-leap will validate the file currently on the local system and if necessary, updates\nleap-second definition file.\n\nOrdinarily, the file is found using the \"leapfile\" directive in ntp.conf(5).  However, an al‐\nternate location can be specified on the command line.\n\nIf the file does not exist, is not valid, has expired, or is expiring soon, a new copy will be\ndownloaded.  If the new copy validates, it is installed and NTP is (optionally) restarted.\n\nIf the current file is acceptable, no download or restart occurs.\n\n-c can also be used to invoke another script to perform administrative functions, e.g. to copy\nthe file to other local systems.  This can be run as a cron job.  As the file is rarely up‐\ndated, and leap seconds are announced at least one month in advance (usually longer), it need\nnot be run more frequently than about once every three weeks.  For cron-friendly behavior, de‐\nfine CRONJOB=1 in the crontab.  This script depends on$REQUIREDCMDS\n\n### OPTIONS\n\n#### -s --source-url\n\nThe URL of the master copy of the leapseconds file.\n\nSpecify the URL of the master copy to download $LEAPSRC\n\n#### -4 --ipv4\n\nUse only IPv4 addresses for DNS name resolution.  This option must not appear in combi‐\nnation with any of the following options: ipv6.\n\nForce DNS resolution of following host names on the command line\nto the IPv4 namespace.\nEndOfDoc; };\n\nflag = {\nname      = ipv6;\nflags-cant = ipv4, prefer;\nvalue     = 6;\ndescrip   = \"Use only IPv6 addresses for DNS name resolution\";\ndoc = <<-  EndOfDoc\nForce DNS resolution of following host names on the command line\nto the IPv6 namespace.\nEndOfDoc; };\n\nflag = {\nname        = prefer;\nflags-cant = ipv4, ipv6;\nvalue = p;\narg-type    = keyword;\nkeyword    = 4, 6;\ndescrip     = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either';\ndoc         = <<-  EndOfDoc Prefer IPv4 or IPv6 (as specified) addresses, but use\neither.\n\n#### -d --destination\n\nFilename on the local system.\n\nThe name to use to store the leapfile on the local system.  $LEAPFILE\n\n#### -e --expiration\n\nRefresh the leapfile this long before it expires.\n\nSpecify how long before expiration the file is to be refreshed Units are required, e.g.\n\"-e 60 days\"  Note that larger values imply more frequent refreshes.  \"$PREFETCH\"\n\n#### -f --ntp-conf-file\n\nLocation of the ntp.conf file.\n\nSpecify location of ntp.conf (used to make sure leapfile directive is present and to\ndefault  leapfile) /etc/ntp.conf\n\n#### -F --force-update\n\nForce update of the leapfile.\n\nForce update even if current file is OK and not close to expiring.\n\n#### --dont-wait\n\nDon't wait for keystroke between plots.\n\n\n-?, --help\nDisplay usage information and exit.\n\n-!, --more-help\nPass the extended usage information through a pager.\n\n#### -v --version\n\nOutput version of program and exit.  The default mode is `v', a simple version.  The\n`c' mode will print copyright information and `n' will print the full copyright notice.\n\n### USAGE\n\nUsage stuff\n\n### EXIT STATUS\n\nOne of the following exit values will be returned:\n\n0  (EXITSUCCESS)\nSuccessful program execution.\n\n1  (EXITFAILURE)\nThe operation failed or the command syntax was not valid.\n\n70  (EXSOFTWARE)\nlibopts had an internal operational error.  Please report it to auto‐\ngen-users@lists.sourceforge.net.  Thank you.\n\n### AUTHORS\n\nTimothe Litt\n\n### NOTES\n\nThis manual page was AutoGen-erated from the update-leap option definitions.\n\nBSD                              June 23 2020                              BSD\n\n"
        }
    ],
    "structuredContent": {
        "command": "update-leap",
        "section": "1",
        "mode": "man",
        "summary": "update-leap — leap-seconds file manager/updater",
        "synopsis": "update-leap [-flags] [-flag [value]] [--option-name[[=| ]value]]\nAll arguments must be options.",
        "flags": [
            {
                "flag": "-s",
                "long": "--source-url",
                "arg": null,
                "description": "The URL of the master copy of the leapseconds file. Specify the URL of the master copy to download $LEAPSRC"
            },
            {
                "flag": "-4",
                "long": "--ipv4",
                "arg": null,
                "description": "Use only IPv4 addresses for DNS name resolution. This option must not appear in combi‐ nation with any of the following options: ipv6. Force DNS resolution of following host names on the command line to the IPv4 namespace. EndOfDoc; }; flag = { name = ipv6; flags-cant = ipv4, prefer; value = 6; descrip = \"Use only IPv6 addresses for DNS name resolution\"; doc = <<- EndOfDoc Force DNS resolution of following host names on the command line to the IPv6 namespace. EndOfDoc; }; flag = { name = prefer; flags-cant = ipv4, ipv6; value = p; arg-type = keyword; keyword = 4, 6; descrip = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either'; doc = <<- EndOfDoc Prefer IPv4 or IPv6 (as specified) addresses, but use either."
            },
            {
                "flag": "-d",
                "long": "--destination",
                "arg": null,
                "description": "Filename on the local system. The name to use to store the leapfile on the local system. $LEAPFILE"
            },
            {
                "flag": "-e",
                "long": "--expiration",
                "arg": null,
                "description": "Refresh the leapfile this long before it expires. Specify how long before expiration the file is to be refreshed Units are required, e.g. \"-e 60 days\" Note that larger values imply more frequent refreshes. \"$PREFETCH\""
            },
            {
                "flag": "-f",
                "long": "--ntp-conf-file",
                "arg": null,
                "description": "Location of the ntp.conf file. Specify location of ntp.conf (used to make sure leapfile directive is present and to default leapfile) /etc/ntp.conf"
            },
            {
                "flag": "-F",
                "long": "--force-update",
                "arg": null,
                "description": "Force update of the leapfile. Force update even if current file is OK and not close to expiring."
            },
            {
                "flag": "",
                "long": "--dont-wait",
                "arg": null,
                "description": "Don't wait for keystroke between plots. -?, --help Display usage information and exit. -!, --more-help Pass the extended usage information through a pager."
            },
            {
                "flag": "-v",
                "long": "--version",
                "arg": null,
                "description": "Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-s --source-url",
                        "lines": 4,
                        "flag": "-s",
                        "long": "--source-url"
                    },
                    {
                        "name": "-4 --ipv4",
                        "lines": 27,
                        "flag": "-4",
                        "long": "--ipv4"
                    },
                    {
                        "name": "-d --destination",
                        "lines": 4,
                        "flag": "-d",
                        "long": "--destination"
                    },
                    {
                        "name": "-e --expiration",
                        "lines": 5,
                        "flag": "-e",
                        "long": "--expiration"
                    },
                    {
                        "name": "-f --ntp-conf-file",
                        "lines": 5,
                        "flag": "-f",
                        "long": "--ntp-conf-file"
                    },
                    {
                        "name": "-F --force-update",
                        "lines": 4,
                        "flag": "-F",
                        "long": "--force-update"
                    },
                    {
                        "name": "--dont-wait",
                        "lines": 9,
                        "long": "--dont-wait"
                    },
                    {
                        "name": "-v --version",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "USAGE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "EXIT STATUS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}