]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-update-done.service.xml
verify: use manager_load_startable_unit_or_warn() to load units for verification
[thirdparty/systemd.git] / man / systemd-update-done.service.xml
CommitLineData
7caa86ac
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
12b42c76 3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
7caa86ac 4<!--
572eb058
ZJS
5 SPDX-License-Identifier: LGPL-2.1+
6
7caa86ac
LP
7 This file is part of systemd.
8
9 Copyright 2014 Lennart Poettering
10
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
15
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23-->
24<refentry id="systemd-update-done.service">
25
798d3a52
ZJS
26 <refentryinfo>
27 <title>systemd-update-done.service</title>
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>systemd-update-done.service</refentrytitle>
42 <manvolnum>8</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>systemd-update-done.service</refname>
47 <refname>systemd-update-done</refname>
48 <refpurpose>Mark <filename>/etc</filename> and <filename>/var</filename> fully updated</refpurpose>
49 </refnamediv>
50
51 <refsynopsisdiv>
52 <para><filename>systemd-update-done.service</filename></para>
12b42c76 53 <para><filename>/usr/lib/systemd/systemd-update-done</filename></para>
798d3a52
ZJS
54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para><filename>systemd-update-done.service</filename> is a
60 service that is invoked as part of the first boot after the vendor
61 operating system resources in <filename>/usr</filename> have been
62 updated. This is useful to implement offline updates of
a8eaaee7 63 <filename>/usr</filename> which might require updates to
798d3a52
ZJS
64 <filename>/etc</filename> or <filename>/var</filename> on the
65 following boot.</para>
66
67 <para><filename>systemd-update-done.service</filename> updates the
68 file modification time (mtime) of the stamp files
69 <filename>/etc/.updated</filename> and
70 <filename>/var/.updated</filename> to the modification time of the
71 <filename>/usr</filename> directory, unless the stamp files are
72 already newer.</para>
73
74 <para>Services that shall run after offline upgrades of
75 <filename>/usr</filename> should order themselves before
76 <filename>systemd-update-done.service</filename>, and use the
77 <varname>ConditionNeedsUpdate=</varname> (see
78 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
79 condition to make sure to run when <filename>/etc</filename> or
80 <filename>/var</filename> are older than <filename>/usr</filename>
81 according to the modification times of the files described above.
82 This requires that updates to <filename>/usr</filename> are always
83 followed by an update of the modification time of
84 <filename>/usr</filename>, for example by invoking
85 <citerefentry project='man-pages'><refentrytitle>touch</refentrytitle><manvolnum>1</manvolnum></citerefentry>
86 on it.</para>
87
88 </refsect1>
89
90 <refsect1>
91 <title>See Also</title>
92 <para>
93 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
94 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
95 <citerefentry project='man-pages'><refentrytitle>touch</refentrytitle><manvolnum>1</manvolnum></citerefentry>
96 </para>
97 </refsect1>
7caa86ac
LP
98
99</refentry>