summaryrefslogtreecommitdiff
path: root/man/systemd-fsckd.service.xml
blob: 2ad78448f8c0a95ba9bed7f602fc1776c5854a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0"?>
<!--*-nxml-*-->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<!--
  This file is part of systemd.

  Copyright 2015 Canonical

  systemd is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as published by
  the Free Software Foundation; either version 2.1 of the License, or
  (at your option) any later version.

  systemd is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with systemd; If not, see <http://www.gnu.org/licenses/>.
-->
<refentry id="systemd-fsckd.service" xmlns:xi="http://www.w3.org/2001/XInclude">

  <refentryinfo>
    <title>systemd-fsckd.service</title>
    <productname>systemd</productname>

    <authorgroup>
      <author>
        <contrib>Developer</contrib>
        <firstname>Didier</firstname>
        <surname>Roche</surname>
        <email>didrocks@ubuntu.com</email>
      </author>
    </authorgroup>
  </refentryinfo>

  <refmeta>
    <refentrytitle>systemd-fsckd.service</refentrytitle>
    <manvolnum>8</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>systemd-fsckd.service</refname>
    <refname>systemd-fsckd.socket</refname>
    <refname>systemd-fsckd</refname>
    <refpurpose>File system check progress reporting</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <para><filename>systemd-fsckd.service</filename></para>
    <para><filename>systemd-fsckd.socket</filename></para>
    <para><filename>/usr/lib/systemd/systemd-fsckd</filename></para>
  </refsynopsisdiv>

  <refsect1>
    <title>Description</title>

    <para><filename>systemd-fsckd.service</filename> is a service responsible
    for receiving file system check progress, and communicating some
    consolidated data to console and plymouth (if running). It also handles
    possible check cancellations.</para>

    <para><command>systemd-fsckd</command> receives messages about file
    system check progress from <command>systemd-fsck</command> through a
    UNIX domain socket. It can display the progress of the least advanced
    fsck as well as the total number of devices being checked in parallel
    to the console. It will also send progress messages to plymouth.
    Both the raw data and translated messages are sent, so compiled
    plymouth themes can use the raw data to display custom messages, and
    scripted themes, not supporting i18n, can display the translated
    versions.</para>

    <para><command>systemd-fsckd</command> will instruct plymouth to grab
    Control+C keypresses. When the key is pressed, running checks will be
    terminated. It will also cancel any newly connected fsck instances for
    the lifetime of <filename>systemd-fsckd</filename>.</para>
  </refsect1>

  <refsect1>
    <title>Protocol for communication with plymouth</title>

    <para><filename>systemd-fsckd</filename> passes the
    following messages to the theme:</para>

    <para>Progress update, sent as a plymouth update message:
      <literal>fsckd:&lt;num_devices&gt;:&lt;progress&gt;:&lt;string&gt;</literal>
      <variablelist>
        <varlistentry>
          <term><literal>&lt;num_devices&gt;</literal></term>
          <listitem><para>the current number of devices
          being checked (int)</para></listitem>
        </varlistentry>
        <varlistentry>
          <term><literal>&lt;progress&gt;</literal></term>
          <listitem><para>the current minimum percentage of
          all devices being checking (float, from 0 to 100)</para></listitem>
        </varlistentry>
        <varlistentry>
          <term><literal>&lt;string&gt;</literal></term>
          <listitem><para>a translated message ready to be displayed
          by the plymouth theme displaying the data above. It can be overriden
          by themes supporting i18n.</para></listitem>
        </varlistentry>
      </variablelist>
    </para>

    <para>Cancel message, sent as a traditional plymouth message:
      <literal>fsckd-cancel-msg:&lt;string&gt;</literal>
      <variablelist>
        <varlistentry>
          <term><literal>&lt;strings&gt;</literal></term>
          <listitem><para>a translated string ready to be displayed
          by the plymouth theme indicating that Control+C can be used to cancel
          current checks. It can be overriden (matching only
          <literal>fsckd-cancel-msg</literal> prefix)
          by themes supporting i18n.</para></listitem>
        </varlistentry>
      </variablelist>
    </para>
  </refsect1>

  <refsect1>
    <title>Options</title>

    <para>The following options are understood:</para>

    <variablelist>
      <xi:include href="standard-options.xml" xpointer="help" />
      <xi:include href="standard-options.xml" xpointer="version" />
    </variablelist>

  </refsect1>

  <refsect1>
    <title>Exit status</title>

    <para>On success, 0 is returned, a non-zero failure
    code otherwise. Note that the daemon stays idle for
    a while to accept new <filename>systemd-fsck</filename>
    connections before exiting.</para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
      <citerefentry><refentrytitle>systemd-fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry><refentrytitle>systemd-quotacheck.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.cramfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.ext4</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.fat</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.hfsplus</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.minix</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.ntfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry project='man-pages'><refentrytitle>fsck.xfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>
    </para>
  </refsect1>

</refentry>