{
    "content": [
        {
            "type": "text",
            "text": "# SYSTEMD-UPDATE-DONE.SERVICE (man)\n\n## NAME\n\nsystemd-update-done.service, systemd-update-done - Mark /etc/ and /var/ fully updated\n\n## SYNOPSIS\n\nsystemd-update-done.service\n/usr/lib/systemd/systemd-update-done\n\n## DESCRIPTION\n\nsystemd-update-done.service is a service that is invoked as part of the first boot after the\nvendor operating system resources in /usr/ have been updated. This is useful to implement\noffline updates of /usr/ which might require updates to /etc/ or /var/ on the following boot.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "SYSTEMD-UPDATE-DONE.SERVICE",
        "section": "",
        "mode": "man",
        "summary": "systemd-update-done.service, systemd-update-done - Mark /etc/ and /var/ fully updated",
        "synopsis": "systemd-update-done.service\n/usr/lib/systemd/systemd-update-done",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "systemd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
            },
            {
                "name": "systemd.unit",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/systemd.unit/5/json"
            },
            {
                "name": "touch",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/touch/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "systemd-update-done.service, systemd-update-done - Mark /etc/ and /var/ fully updated\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "systemd-update-done.service\n\n/usr/lib/systemd/systemd-update-done\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "systemd-update-done.service is a service that is invoked as part of the first boot after the\nvendor operating system resources in /usr/ have been updated. This is useful to implement\noffline updates of /usr/ which might require updates to /etc/ or /var/ on the following boot.\n\nsystemd-update-done.service updates the file modification time (mtime) of the stamp files\n/etc/.updated and /var/.updated to the modification time of the /usr/ directory, unless the\nstamp files are already newer.\n\nServices that shall run after offline upgrades of /usr/ should order themselves before\nsystemd-update-done.service, and use the ConditionNeedsUpdate= (see systemd.unit(5))\ncondition to make sure to run when /etc/ or /var/ are older than /usr/ according to the\nmodification times of the files described above. This requires that updates to /usr/ are\nalways followed by an update of the modification time of /usr/, for example by invoking\ntouch(1) on it.\n\nNote that if the systemd.condition-needs-update= kernel command line option is used it\noverrides the ConditionNeedsUpdate= unit condition checks. In that case\nsystemd-update-done.service will not reset the condition state until a follow-up reboot where\nthe kernel switch is not specified anymore.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "systemd(1), systemd.unit(5), touch(1)\n\nsystemd 255                                                           SYSTEMD-UPDATE-DONE.SERVICE(8)",
                "subsections": []
            }
        }
    }
}