Lines Matching defs:runlevel
73 const int runlevel;
111 return table[i].runlevel;
173 int r = 0, q, previous, runlevel;
177 /* We finished changing runlevel, so let's write the
180 /* First, get last runlevel */
185 return log_error_errno(q, "Failed to get current runlevel: %m");
190 /* Secondly, get new runlevel */
191 runlevel = get_current_runlevel(c);
193 if (runlevel < 0)
194 return runlevel;
196 if (previous == runlevel)
205 runlevel > 0 ? runlevel : 'N') < 0)
213 q = utmp_put_runlevel(runlevel, previous);
266 else if (streq(argv[1], "runlevel"))