This patch rpcbind.target to multi-user.target.
After apply this path, you can add to rpcbind.service only:
[Install]
WantedBy=rpcbind.target
without  multi-user.target.


-- 
Alexey Shabalin
From 78440a9d43c4d8c9890ad96ff4e32aaee47a28e0 Mon Sep 17 00:00:00 2001
From: Alexey Shabalin <sh...@altlinux.ru>
Date: Sat, 14 May 2011 05:24:14 +0400
Subject: [PATCH] pull rpcbind.target to multi-user.target

---
 Makefile.am          |    3 ++-
 units/rpcbind.target |    4 ++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 873090e..8d8b293 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1407,8 +1407,9 @@ endif
 		$(LN_S) reboot.target ctrl-alt-del.target && \
                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
 	( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
-		rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
+		rm -f getty.target rpcbind.target systemd-user-sessions.service systemd-ask-password-wall.path && \
 		$(LN_S) ../getty.target getty.target && \
+		$(LN_S) ../rpcbind.target rpcbind.target && \
 		$(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
 		$(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
 	( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
diff --git a/units/rpcbind.target b/units/rpcbind.target
index a5cea8c..f141b21 100644
--- a/units/rpcbind.target
+++ b/units/rpcbind.target
@@ -12,3 +12,7 @@
 
 [Unit]
 Description=RPC Port Mapper
+After=network.target
+
+[Install]
+WantedBy=multi-user.target
-- 
1.7.4.5

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to