On Debian there is no distinction by default between runlevels 2-5 The attached patch accounts for that.
The patch is based on http://git.err.no/cgi-bin/gitweb.cgi?p=systemd;a=blob;f=units/multi-user.target.m4;h=bbb5224f2b18be755fe4371ca5b024b29e7fce3b;hb=cf586269a3a738275d31cf24403f94ca0946ecfb -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
From 03f17b1de6103b6b778d2b211fed4abdc2a5f398 Mon Sep 17 00:00:00 2001 From: Michael Biebl <bi...@debian.org> Date: Tue, 7 Sep 2010 19:58:14 +0200 Subject: [PATCH] units: On Debian Runlevel 2, 3, 4 and 5 are multi-user Patch by Tollef Fog Heen <tfh...@err.no> Extended to re-create the runlevel5.target symlink by Michael Biebl <bi...@debian.org> --- Makefile.am | 3 +++ units/multi-user.target.m4 | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2bafe16..7a95e5c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -974,6 +974,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 48c21d2..cf290e7 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] -- 1.7.1
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel