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