summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--units/multi-user.target.m44
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index b40aa96c34..e1fe9e657f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -972,6 +972,9 @@ if TARGET_DEBIAN
$(LN_S) ../umountfs.service umountfs.service && \
$(LN_S) ../umountnfs.service umountnfs.service && \
$(LN_S) ../umountroot.service umountroot.service )
+ ( cd $(DESTDIR)$(systemunitdir) && \
+ rm -f runlevel5.target && \
+ $(LN_S) multi-user.target runlevel5.target )
endif
if !TARGET_SUSE
if !TARGET_DEBIAN
diff --git a/units/multi-user.target.m4 b/units/multi-user.target.m4
index 48c21d23f9..cf290e7cf5 100644
--- a/units/multi-user.target.m4
+++ b/units/multi-user.target.m4
@@ -20,6 +20,10 @@ Names=runlevel3.target
m4_ifdef(`TARGET_SUSE',
Names=runlevel3.target
)m4_dnl
+m4_ifdef(`TARGET_DEBIAN',
+m4_dnl On Debian Runlevel 2, 3, 4 and 5 are multi-user
+Names=runlevel2.target runlevel3.target runlevel4.target runlevel5.target
+)m4_dnl
AllowIsolate=yes
[Install]