]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-machine-id-commit.service.xml
Merge pull request #221 from utezduyar/man-cgtop-explain-max-cpu
[thirdparty/systemd.git] / man / systemd-machine-id-commit.service.xml
CommitLineData
2a5a41e8
DR
1<?xml version="1.0"?>
2<!--*-nxml-*-->
681eb9cf
FB
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]>
2a5a41e8
DR
7<!--
8 This file is part of systemd.
9
10 Copyright 2014 Didier Roche
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-machine-id-commit.service">
26
798d3a52
ZJS
27 <refentryinfo>
28 <title>systemd-machine-id-commit.service</title>
29 <productname>systemd</productname>
30
31 <authorgroup>
32 <author>
33 <contrib>Developer</contrib>
34 <firstname>Didier</firstname>
35 <surname>Roche</surname>
36 <email>didrocks@ubuntu.com</email>
37 </author>
38 </authorgroup>
39 </refentryinfo>
40
41 <refmeta>
42 <refentrytitle>systemd-machine-id-commit.service</refentrytitle>
43 <manvolnum>8</manvolnum>
44 </refmeta>
45
46 <refnamediv>
47 <refname>systemd-machine-id-commit.service</refname>
48 <refpurpose>Commit transient machine-id to disk</refpurpose>
49 </refnamediv>
50
51 <refsynopsisdiv>
52 <para><filename>systemd-machine-id-commit.service</filename></para>
681eb9cf 53 <para><filename>&rootlibexecdir;/systemd-machine-id-commit</filename></para>
798d3a52
ZJS
54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para><filename>systemd-machine-id-commit.service</filename> is a
60 service responsible for committing any transient
61 <filename>/etc/machine-id</filename> file to a writable file
62 system. See
63 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>
64 for more information about this file.</para>
65
66 <para>This service is started shortly after
67 <filename>local-fs.target</filename> if
68 <filename>/etc/machine-id</filename> is an independent mount point
69 (probably a tmpfs one) and /etc is writable.
70 <command>systemd-machine-id-commit</command> will then write
71 current machine ID to disk and unmount the transient
72 <filename>/etc/machine-id</filename> file in a race-free manner to
73 ensure that file is always valid for other processes.</para>
74
75 <para>Note that the traditional way to initialize the machine ID
76 in <filename>/etc/machine-id</filename> is to use
77 <command>systemd-machine-id-setup</command> by system installer
78 tools. You can also use
79 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
80 to initialize the machine ID on mounted (but not booted) system
81 images. The main use case for that service is
82 <filename>/etc/machine-id</filename> being an empty file at boot
83 and initrd chaining to systemd giving it a read only file system
84 that will be turned read-write later during the boot
85 process.</para>
86
87 <para>There is no consequence if that service fails other than a
88 newer machine-id will be generated during next system boot.
89 </para>
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-machine-id-commit</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>systemd-machine-id-setup</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
98 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
99 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
100 </para>
101 </refsect1>
2a5a41e8
DR
102
103</refentry>