summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-25 03:31:59 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-25 03:31:59 +0200
commitee2083d5cacd8b6065b6a38d284f3e28961775a4 (patch)
treee04bd09d43af97d120c97d7d8333fbe54157c86e /src
parent1a7fdcad3ae37fae7789584d203eca97bf0a223a (diff)
utmp: document that the order of preference for runlevel numbers might be something to change in other distributions
Diffstat (limited to 'src')
-rw-r--r--src/update-utmp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/update-utmp.c b/src/update-utmp.c
index 3ec0a16c2a..336594fc7a 100644
--- a/src/update-utmp.c
+++ b/src/update-utmp.c
@@ -114,7 +114,10 @@ static int get_current_runlevel(Context *c) {
const char *special;
} table[] = {
/* The first target of this list that is active or has
- * a job scheduled wins */
+ * a job scheduled wins. We prefer runlevels 5 and 3
+ * here over the others, since these are the main
+ * runlevels used on Fedora. It might make sense to
+ * change the order on some distributions. */
{ '5', SPECIAL_RUNLEVEL5_TARGET },
{ '3', SPECIAL_RUNLEVEL3_TARGET },
{ '4', SPECIAL_RUNLEVEL4_TARGET },