Searched defs:runlevel (Results 1 - 6 of 6) sorted by relevance
/systemd/src/shared/ |
H A D | utmp-wtmp.h | 29 int utmp_get_runlevel(int *runlevel, int *previous); 33 int utmp_put_runlevel(int runlevel, int previous); 47 static inline int utmp_get_runlevel(int *runlevel, int *previous) { argument 56 static inline int utmp_put_runlevel(int runlevel, int previous) { argument
|
H A D | initreq.h | 60 * Because of legacy interfaces, "runlevel" and "sleeptime" 69 int runlevel; /* Runlevel to change to */ member in struct:init_request
|
H A D | utmp-wtmp.c | 44 int utmp_get_runlevel(int *runlevel, int *previous) { argument 49 assert(runlevel); 54 * go to disk and hence might read runlevel data that might be 60 *runlevel = e[0]; 89 *runlevel = a; 291 int utmp_put_runlevel(int runlevel, int previous) { argument 295 assert(runlevel > 0); 298 /* Find the old runlevel automatically */ 309 if (previous == runlevel) 315 store.ut_pid = (runlevel [all...] |
/systemd/src/update-utmp/ |
H A D | update-utmp.c | 73 const int runlevel; member in struct:__anon342 111 return table[i].runlevel; 173 int r = 0, q, previous, runlevel; local 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; [all...] |
/systemd/src/initctl/ |
H A D | initctl.c | 68 static const char *translate_runlevel(int runlevel, bool *isolate) { argument 70 const int runlevel; member in struct:__anon88 90 if (table[i].runlevel == runlevel) { 92 if (runlevel == '6' && kexec_loaded()) 100 static void change_runlevel(Server *s, int runlevel) { argument 109 target = translate_runlevel(runlevel, &isolate); 111 log_warning("Got request for unknown runlevel %c, ignoring.", runlevel); 132 log_error("Failed to change runlevel [all...] |
/systemd/src/systemctl/ |
H A D | systemctl.c | 6345 "Prints the previous and current runlevel of the init system.\n\n" 6862 int c, r, runlevel; local 6867 if (utmp_get_runlevel(&runlevel, NULL) >= 0) 6868 if (runlevel == '0' || runlevel == '6') 7251 } else if (strstr(program_invocation_short_name, "runlevel")) { 7295 request.runlevel = rl; 7575 int r, runlevel, previous; local 7577 r = utmp_get_runlevel(&runlevel, &previous); 7585 runlevel < [all...] |
Completed in 2823 milliseconds