mirror of
https://github.com/systemd/systemd
synced 2024-07-22 02:34:54 +00:00
units: introduce nss-user-lookup.target
This separates user/group NSS lookups from host/network NSS lookups. By default order all network mounts after host/network NSS lookups now, and logind execution after user/group NSS lookups.
This commit is contained in:
parent
d50f0b1c9f
commit
082694b75f
|
@ -290,6 +290,7 @@ dist_systemunit_DATA = \
|
||||||
units/remote-fs-pre.target \
|
units/remote-fs-pre.target \
|
||||||
units/network.target \
|
units/network.target \
|
||||||
units/nss-lookup.target \
|
units/nss-lookup.target \
|
||||||
|
units/nss-user-lookup.target \
|
||||||
units/mail-transfer-agent.target \
|
units/mail-transfer-agent.target \
|
||||||
units/http-daemon.target \
|
units/http-daemon.target \
|
||||||
units/poweroff.target \
|
units/poweroff.target \
|
||||||
|
|
|
@ -383,16 +383,38 @@
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><filename>nss-lookup.target</filename></term>
|
<term><filename>nss-lookup.target</filename></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>systemd automatically
|
<para>A target that should be
|
||||||
adds dependencies of type
|
used as synchronization point
|
||||||
After for this target unit to
|
for all host/network name
|
||||||
all SysV init script service
|
service lookups. Note that
|
||||||
units with an LSB header
|
this is independent of
|
||||||
referring to the
|
user/group name lookups for
|
||||||
|
which
|
||||||
|
<filename>nss-user-lookup.target</filename>
|
||||||
|
should be used. systemd
|
||||||
|
automatically adds
|
||||||
|
dependencies of type After for
|
||||||
|
this target unit to all SysV
|
||||||
|
init script service units with
|
||||||
|
an LSB header referring to the
|
||||||
<literal>$named</literal>
|
<literal>$named</literal>
|
||||||
facility.</para>
|
facility.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><filename>nss-user-lookup.target</filename></term>
|
||||||
|
<listitem>
|
||||||
|
<para>A target that should be
|
||||||
|
used as synchronization point
|
||||||
|
for all user/group name
|
||||||
|
service lookups. Note that
|
||||||
|
this is independent of
|
||||||
|
host/network name lookups for
|
||||||
|
which
|
||||||
|
<filename>nss-lookup.target</filename>
|
||||||
|
should be used. </para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><filename>poweroff.target</filename></term>
|
<term><filename>poweroff.target</filename></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
|
@ -11,5 +11,5 @@
|
||||||
# implementations lacking socket/bus activation.
|
# implementations lacking socket/bus activation.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Name Lookups
|
Description=Host and Network Name Lookups
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
15
units/nss-user-lookup.target
Normal file
15
units/nss-user-lookup.target
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# This file is part of systemd.
|
||||||
|
#
|
||||||
|
# systemd is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
|
||||||
|
# See systemd.special(7) for details
|
||||||
|
|
||||||
|
# This exists mostly for implementations lacking socket/bus
|
||||||
|
# activation.
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=User and Group Name Lookups
|
||||||
|
After=network.target
|
|
@ -9,4 +9,4 @@
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Remote File Systems (Pre)
|
Description=Remote File Systems (Pre)
|
||||||
After=network.target
|
After=network.target nss-lookup.target
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Login Service
|
Description=Login Service
|
||||||
|
After=nss-user-lookup.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@rootlibexecdir@/systemd-logind
|
ExecStart=@rootlibexecdir@/systemd-logind
|
||||||
|
|
Loading…
Reference in a new issue