[4ef4636b] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY elogind-download-http "https://github.com/elogind/elogind/archive/v&elogind-version;/elogind-&elogind-version;.tar.gz">
|
---|
| 8 | <!ENTITY elogind-download-ftp " ">
|
---|
| 9 | <!ENTITY elogind-md5sum "468e027997be922aa11bfa395c7f1fb7">
|
---|
| 10 | <!ENTITY elogind-size "1.1 MB">
|
---|
| 11 | <!ENTITY elogind-buildsize "47 MB">
|
---|
| 12 | <!ENTITY elogind-time "0.2 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="elogind" revision="sysv" xreflabel="elogind-&elogind-version;">
|
---|
| 16 | <?dbhtml filename="elogind.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>elogind-&elogind-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="elogind">
|
---|
| 26 | <primary sortas="a-elogind">elogind</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to elogind</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>elogind</application> is the
|
---|
| 34 | <application>systemd</application> project's "logind", extracted out to
|
---|
| 35 | be a standalone daemon. It integrates with <xref linkend="linux-pam"/>
|
---|
| 36 | to know the set of users that are logged in to a system and whether they
|
---|
| 37 | are logged in graphically, on the console, or remotely.
|
---|
| 38 | <application>Elogind</application> exposes this information via the
|
---|
| 39 | standard org.freedesktop.login1 <application>D-Bus</application>
|
---|
| 40 | interface, as well as through the file system using systemd's standard
|
---|
| 41 | <filename class="directory">/run/systemd</filename> layout.
|
---|
| 42 | </para>
|
---|
| 43 |
|
---|
| 44 | &lfs83_checked;
|
---|
| 45 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&elogind-download-http;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&elogind-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download MD5 sum: &elogind-md5sum;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Download size: &elogind-size;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated disk space required: &elogind-buildsize;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
| 75 | Estimated build time: &elogind-time;
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect3">elogind Dependencies</bridgehead>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 83 | <para role="required">
|
---|
| 84 | <xref linkend="dbus"/>
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 88 | <para role="recommended">
|
---|
| 89 | <xref linkend="DocBook"/>,
|
---|
| 90 | <xref linkend="docbook-xsl"/>, and
|
---|
| 91 | <xref linkend="libxslt"/> (to build the man pages),
|
---|
| 92 | <xref linkend="linux-pam"/>, and
|
---|
| 93 | <xref linkend="polkit"/> (runtime)
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 97 | <para role="optional">
|
---|
| 98 | For the tests:
|
---|
| 99 | <xref linkend="lxml"/>,
|
---|
| 100 | <xref linkend="gobject-introspection"/>,
|
---|
| 101 | <xref linkend="zsh"/>,
|
---|
| 102 | <xref linkend="valgrind"/>,
|
---|
| 103 | <ulink url="https://github.com/linux-audit/audit-userspace">
|
---|
| 104 | audit-userspace</ulink>,
|
---|
| 105 | <ulink url="https://github.com/scop/bash-completion">
|
---|
| 106 | bash-completion</ulink>,
|
---|
| 107 | <ulink url="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kexec/">
|
---|
| 108 | kexec</ulink>, and
|
---|
| 109 | <ulink url="http://www.selinuxproject.org/page/Main_Page">
|
---|
| 110 | SELinux</ulink>
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <para condition="html" role="usernotes">User Notes:
|
---|
| 114 | <ulink url="&blfs-wiki;/elogind"/>
|
---|
| 115 | </para>
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="installation">
|
---|
| 119 | <title>Installation of elogind</title>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Install <application>elogind</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <screen><userinput>mkdir build &&
|
---|
| 127 | cd build &&
|
---|
| 128 |
|
---|
| 129 | meson --prefix=/usr \
|
---|
| 130 | --sysconfdir=/etc \
|
---|
| 131 | --localstatedir=/var \
|
---|
| 132 | -Dcgroup-controller=elogind \
|
---|
| 133 | -Ddbuspolicydir=/etc/dbus-1/system.d \
|
---|
| 134 | .. &&
|
---|
| 135 | ninja</userinput></screen>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | This package does not come with a test suite.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
| 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | <parameter>-Dcgroup-controller=elogind</parameter>: This switch ensures
|
---|
| 154 | that <application>elogind</application> is selected as the cgroup
|
---|
| 155 | controller, even if booted with another running cgroup controller.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <para>
|
---|
| 159 | <parameter>-Ddbuspolicydir=/etc/dbus-1/system.d</parameter>: This switch
|
---|
| 160 | sets the location of the <application>D-Bus</application> policy
|
---|
| 161 | directory.
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | <sect2 role="configuration">
|
---|
| 167 | <title>Configuring elogind</title>
|
---|
| 168 |
|
---|
| 169 | <para revision="sysv">
|
---|
| 170 | To automatically start <command>elogind</command> when the
|
---|
| 171 | system is rebooted, install the
|
---|
| 172 | <filename>/etc/rc.d/init.d/elogind</filename> bootscript from the
|
---|
| 173 | <xref linkend="bootscripts"/> package.
|
---|
| 174 | </para>
|
---|
| 175 |
|
---|
| 176 | <indexterm zone="elogind elogind">
|
---|
| 177 | <primary sortas="f-elogind">elogind</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 |
|
---|
| 180 | <screen role="root"><userinput>make install-elogind</userinput></screen>
|
---|
| 181 |
|
---|
| 182 | <para>
|
---|
| 183 | Note that this boot script only starts the system-wide
|
---|
| 184 | <application>elogind</application> daemon. Each user will also need to
|
---|
| 185 | register a user session using <application>Linux-PAM</application> at
|
---|
| 186 | login. The <filename>/etc/pam.d/system-session</filename> file needs to
|
---|
| 187 | be modified and a new file needs to be created in order for
|
---|
| 188 | <command>elogind</command> to work correctly. Run the following
|
---|
| 189 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 190 | </para>
|
---|
| 191 |
|
---|
| 192 | <screen role="root"><userinput>cat >> /etc/pam.d/system-session << "EOF" &&
|
---|
| 193 | # Begin elogind addition
|
---|
| 194 |
|
---|
| 195 | session required pam_loginuid.so
|
---|
| 196 | session optional pam_elogind.so
|
---|
| 197 |
|
---|
| 198 | # End elogind addition
|
---|
| 199 | EOF
|
---|
| 200 | cat > /etc/pam.d/elogind-user << "EOF"
|
---|
| 201 | # Begin /etc/pam.d/elogind-user
|
---|
| 202 |
|
---|
| 203 | account required pam_access.so
|
---|
| 204 | account include system-account
|
---|
| 205 |
|
---|
| 206 | session required pam_env.so
|
---|
| 207 | session required pam_limits.so
|
---|
| 208 | session required pam_unix.so
|
---|
| 209 | session required pam_loginuid.so
|
---|
| 210 | session optional pam_keyinit.so force revoke
|
---|
| 211 | session optional pam_elogind.so
|
---|
| 212 |
|
---|
| 213 | auth required pam_deny.so
|
---|
| 214 | password required pam_deny.so
|
---|
| 215 |
|
---|
| 216 | # End /etc/pam.d/elogind-user
|
---|
| 217 | EOF</userinput></screen>
|
---|
| 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | <sect2 role="content" revision="sysv">
|
---|
| 222 | <title>Contents</title>
|
---|
| 223 |
|
---|
| 224 | <segmentedlist>
|
---|
| 225 | <segtitle>Installed Programs</segtitle>
|
---|
| 226 | <segtitle>Installed Library</segtitle>
|
---|
| 227 | <segtitle>Installed Directories</segtitle>
|
---|
| 228 |
|
---|
| 229 | <seglistitem>
|
---|
| 230 | <seg>
|
---|
| 231 | busctl,
|
---|
| 232 | elogind-inhibit, and
|
---|
| 233 | loginctl
|
---|
| 234 | </seg>
|
---|
| 235 | <seg>
|
---|
| 236 | libelogind.so
|
---|
| 237 | </seg>
|
---|
| 238 | <seg>
|
---|
| 239 | /etc/elogind,
|
---|
| 240 | /usr/include/elogind, and
|
---|
| 241 | /usr/share/doc/elogind-&elogind-version;
|
---|
| 242 | </seg>
|
---|
| 243 | </seglistitem>
|
---|
| 244 | </segmentedlist>
|
---|
| 245 |
|
---|
| 246 | <variablelist>
|
---|
| 247 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 248 | <?dbfo list-presentation="list"?>
|
---|
| 249 | <?dbhtml list-presentation="table"?>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="busctl">
|
---|
| 252 | <term><command>busctl</command></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>
|
---|
| 255 | is used to introspect and monitor the D-Bus bus.
|
---|
| 256 | </para>
|
---|
| 257 | <indexterm zone="elogind busctl">
|
---|
| 258 | <primary sortas="b-busctl">busctl</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="elogind-inhibit">
|
---|
| 264 | <term><command>elogind-inhibit</command></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>
|
---|
| 267 | is used to execute a program with a shutdown, sleep or idle
|
---|
| 268 | inhibitor lock taken.
|
---|
| 269 | </para>
|
---|
| 270 | <indexterm zone="elogind elogind-inhibit">
|
---|
| 271 | <primary sortas="b-elogind-inhibit">elogind-inhibit</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="loginctl">
|
---|
| 277 | <term><command>loginctl</command></term>
|
---|
| 278 | <listitem>
|
---|
| 279 | <para>
|
---|
| 280 | is used to introspect and control the state of the elogind Login
|
---|
| 281 | Manger.
|
---|
| 282 | </para>
|
---|
| 283 | <indexterm zone="elogind loginctl">
|
---|
| 284 | <primary sortas="b-loginctl">loginctl</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | <varlistentry id="libelogind">
|
---|
| 290 | <term><filename class="libraryfile">libelogind.so</filename></term>
|
---|
| 291 | <listitem>
|
---|
| 292 | <para>
|
---|
| 293 | is the main elogind utility library.
|
---|
| 294 | </para>
|
---|
| 295 | <indexterm zone="elogind libelogind">
|
---|
| 296 | <primary sortas="c-libelogind">libelogind.so</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
| 300 |
|
---|
| 301 | </variablelist>
|
---|
| 302 |
|
---|
| 303 | </sect2>
|
---|
| 304 |
|
---|
| 305 | </sect1>
|
---|
| 306 |
|
---|