]> err.no Git - systemd/commitdiff
units: introduce nss-user-lookup.target
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Apr 2012 22:11:18 +0000 (00:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Apr 2012 22:11:18 +0000 (00:11 +0200)
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.

Makefile.am
man/systemd.special.xml
units/nss-lookup.target
units/nss-user-lookup.target [new file with mode: 0644]
units/remote-fs-pre.target
units/systemd-logind.service.in

index 7e9e23175a68ab8675533a3bfc92b4dedf7d7d99..0aebeb2d9809dcdc4101cba2b10f05d11ada5608 100644 (file)
@@ -290,6 +290,7 @@ dist_systemunit_DATA = \
        units/remote-fs-pre.target \
        units/network.target \
        units/nss-lookup.target \
+       units/nss-user-lookup.target \
        units/mail-transfer-agent.target \
        units/http-daemon.target \
        units/poweroff.target \
index fe85137ffe33f15bf5de84bd1aa9403172a54b6e..4c64a0fef220cfba917da5bf8da9ca7fc865362d 100644 (file)
                         <varlistentry>
                                 <term><filename>nss-lookup.target</filename></term>
                                 <listitem>
-                                        <para>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
+                                        <para>A target that should be
+                                        used as synchronization point
+                                        for all host/network name
+                                        service lookups. Note that
+                                        this is independent of
+                                        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>
                                         facility.</para>
                                 </listitem>
                         </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>
                                 <term><filename>poweroff.target</filename></term>
                                 <listitem>
index bdca03cd8874adb1b2b2a190e7dc629fb9b4f0b7..f7b0b5c955a222dd13a76d3b26e6a769ba09c9ad 100644 (file)
@@ -11,5 +11,5 @@
 # implementations lacking socket/bus activation.
 
 [Unit]
-Description=Name Lookups
+Description=Host and Network Name Lookups
 After=network.target
diff --git a/units/nss-user-lookup.target b/units/nss-user-lookup.target
new file mode 100644 (file)
index 0000000..40e2148
--- /dev/null
@@ -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
index 8aceb08b9d72e8150cb14a1d1d7c3d6424174122..eca271b3becb9866f8c71f514927710c3fe8bdf7 100644 (file)
@@ -9,4 +9,4 @@
 
 [Unit]
 Description=Remote File Systems (Pre)
-After=network.target
+After=network.target nss-lookup.target
index 531b8f7e9310ae88dd9c8a816ef8131406ac5907..48c1f2c3f021be9f79445ef163156fb0cbd99f2b 100644 (file)
@@ -9,6 +9,7 @@
 
 [Unit]
 Description=Login Service
+After=nss-user-lookup.target
 
 [Service]
 ExecStart=@rootlibexecdir@/systemd-logind