From 7caa86ac4d19f65e396d759bfb02b96646fc09eb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 1 Jul 2014 00:16:17 +0200 Subject: [PATCH] man: document systemd-update-done.service --- Makefile-man.am | 7 ++ man/systemd-update-done.service.xml | 101 +++++++++++++++++++++++++++ units/systemd-update-done.service.in | 2 +- 3 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 man/systemd-update-done.service.xml diff --git a/Makefile-man.am b/Makefile-man.am index 38a395eff..3840bb138 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -87,6 +87,7 @@ MANPAGES += \ man/systemd-tmpfiles.8 \ man/systemd-tty-ask-password-agent.1 \ man/systemd-udevd.service.8 \ + man/systemd-update-done.service.8 \ man/systemd-update-utmp.service.8 \ man/systemd.1 \ man/systemd.automount.5 \ @@ -217,6 +218,7 @@ MANPAGES_ALIAS += \ man/systemd-udevd-control.socket.8 \ man/systemd-udevd-kernel.socket.8 \ man/systemd-udevd.8 \ + man/systemd-update-done.8 \ man/systemd-update-utmp-runlevel.service.8 \ man/systemd-update-utmp.8 \ man/systemd-user.conf.5 @@ -321,6 +323,7 @@ man/systemd-tmpfiles-setup.service.8: man/systemd-tmpfiles.8 man/systemd-udevd-control.socket.8: man/systemd-udevd.service.8 man/systemd-udevd-kernel.socket.8: man/systemd-udevd.service.8 man/systemd-udevd.8: man/systemd-udevd.service.8 +man/systemd-update-done.8: man/systemd-update-done.service.8 man/systemd-update-utmp-runlevel.service.8: man/systemd-update-utmp.service.8 man/systemd-update-utmp.8: man/systemd-update-utmp.service.8 man/systemd-user.conf.5: man/systemd-system.conf.5 @@ -627,6 +630,9 @@ man/systemd-udevd-kernel.socket.html: man/systemd-udevd.service.html man/systemd-udevd.html: man/systemd-udevd.service.html $(html-alias) +man/systemd-update-done.html: man/systemd-update-done.service.html + $(html-alias) + man/systemd-update-utmp-runlevel.service.html: man/systemd-update-utmp.service.html $(html-alias) @@ -1633,6 +1639,7 @@ EXTRA_DIST += \ man/systemd-tmpfiles.xml \ man/systemd-tty-ask-password-agent.xml \ man/systemd-udevd.service.xml \ + man/systemd-update-done.service.xml \ man/systemd-update-utmp.service.xml \ man/systemd-user-sessions.service.xml \ man/systemd-vconsole-setup.service.xml \ diff --git a/man/systemd-update-done.service.xml b/man/systemd-update-done.service.xml new file mode 100644 index 000000000..a791beae6 --- /dev/null +++ b/man/systemd-update-done.service.xml @@ -0,0 +1,101 @@ + + + + + + + + systemd-update-done.service + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + systemd-update-done.service + 8 + + + + systemd-update-done.service + systemd-update-done + Mark /etc and /var fully updated + + + + systemd-update-done.service + /usr/lib/systemd/systemd-update-done + + + + Description + + systemd-update-done.service + is a service that is invoked as part of the first boot + after the vendor operating system resources in + /usr have been updated. This is + useful to implement offline updates of + /usr which might requires updates + to /etc or + /var on the following boot. + + systemd-update-done.service + updates the file modification time (mtime) of the + stamp files /etc/.updated and + /var/.updated to the modification + time of the /usr directory, + unless the stamp files are already newer. + + Services that shall run after offline upgrades + of /usr should order themselves + before + systemd-update-done.service, and + use the ConditionNeedsUpdate= (see + systemd.unit5) + condition to make sure to run when + /etc or /var + are older than /usr according to + the modification times of the files described + above. This requires that updates to + /usr are always followed by an + update of the modification time of + /usr, for example by invoking + touch1 + on it. + + + + + See Also + + systemd1, + systemd.unit5, + touch1 + + + + diff --git a/units/systemd-update-done.service.in b/units/systemd-update-done.service.in index f75fcff57..7031bff61 100644 --- a/units/systemd-update-done.service.in +++ b/units/systemd-update-done.service.in @@ -7,7 +7,7 @@ [Unit] Description=Update is Completed -Documentation=man:sysusers.d(5) man:systemd-sysusers(8) +Documentation=man:systemd-update-done.service(8) DefaultDependencies=no Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target -- 2.30.2