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