/systemd-251/src/update-utmp/ |
D | update-utmp.c | 72 const int runlevel; in get_current_runlevel() member 109 return table[i].runlevel; in get_current_runlevel() 172 int r = 0, q, previous, runlevel; in on_runlevel() local 190 runlevel = get_current_runlevel(c); in on_runlevel() 191 if (runlevel < 0) in on_runlevel() 192 return runlevel; in on_runlevel() 193 if (runlevel == 0) { in on_runlevel() 198 if (previous == runlevel) in on_runlevel() 207 runlevel); in on_runlevel() 215 q = utmp_put_runlevel(runlevel, previous); in on_runlevel()
|
/systemd-251/src/initctl/ |
D | initctl.c | 56 static const char *translate_runlevel(int runlevel, bool *isolate) { in translate_runlevel() argument 58 const int runlevel; in translate_runlevel() member 76 if (table[i].runlevel == runlevel) { in translate_runlevel() 78 if (runlevel == '6' && kexec_loaded()) in translate_runlevel() 86 static int change_runlevel(Server *s, int runlevel) { in change_runlevel() argument 95 target = translate_runlevel(runlevel, &isolate); in change_runlevel() 97 log_warning("Got request for unknown runlevel %c, ignoring.", runlevel); in change_runlevel() 135 if (!isprint(req->runlevel)) in request_process() 138 switch (req->runlevel) { in request_process() 161 (void) change_runlevel(s, req->runlevel); in request_process()
|
/systemd-251/src/systemctl/ |
D | systemctl-compat-runlevel.c | 69 int r, runlevel, previous; in runlevel_main() local 71 r = utmp_get_runlevel(&runlevel, &previous); in runlevel_main() 79 runlevel <= 0 ? 'N' : runlevel); in runlevel_main()
|
D | systemctl-compat-halt.c | 74 int c, r, runlevel; in halt_parse_argv() local 80 if (utmp_get_runlevel(&runlevel, NULL) >= 0) in halt_parse_argv() 81 if (IN_SET(runlevel, '0', '6')) in halt_parse_argv()
|
D | meson.build | 12 'systemctl-compat-runlevel.c', 13 'systemctl-compat-runlevel.h',
|
D | systemctl-sysv-compat.h | 6 int talk_initctl(char runlevel);
|
D | systemctl-sysv-compat.c | 47 .runlevel = rl, in talk_initctl()
|
/systemd-251/src/shared/ |
D | utmp-wtmp.h | 13 int utmp_get_runlevel(int *runlevel, int *previous); 17 int utmp_put_runlevel(int runlevel, int previous); 40 static inline int utmp_get_runlevel(int *runlevel, int *previous) { in utmp_get_runlevel() argument 49 static inline int utmp_put_runlevel(int runlevel, int previous) { in utmp_put_runlevel() argument
|
D | utmp-wtmp.c | 27 int utmp_get_runlevel(int *runlevel, int *previous) { in utmp_get_runlevel() argument 32 assert(runlevel); in utmp_get_runlevel() 42 *runlevel = e[0]; in utmp_get_runlevel() 58 *runlevel = found->ut_pid & 0xFF; in utmp_get_runlevel() 253 int utmp_put_runlevel(int runlevel, int previous) { in utmp_put_runlevel() argument 257 assert(runlevel > 0); in utmp_put_runlevel() 271 if (previous == runlevel) in utmp_put_runlevel() 277 store.ut_pid = (runlevel & 0xFF) | ((previous & 0xFF) << 8); in utmp_put_runlevel()
|
D | initreq.h | 68 int runlevel; /* Runlevel to change to */ member
|
/systemd-251/units/ |
D | systemd-update-utmp-runlevel.service.in | 12 Documentation=man:systemd-update-utmp-runlevel.service(8) man:utmp(5) 23 ExecStart={{ROOTLIBEXECDIR}}/systemd-update-utmp runlevel
|
D | meson.build | 251 ['systemd-update-utmp-runlevel.service', 'ENABLE_UTMP HAVE_SYSV_COMPAT', 329 mkdir_p.format(systemunitdir / 'runlevel@0@.target.wants'.format(i)))
|
/systemd-251/test/ |
D | sysv-generator-test.py | 115 def make_link(prefix, runlevel): argument 116 d = os.path.join(self.rcnd_dir, 'rc{}.d'.format(runlevel))
|
/systemd-251/man/rules/ |
D | meson.build | 74 ['runlevel', '8', [], 'HAVE_SYSV_COMPAT'], 1038 ['systemd-update-utmp', 'systemd-update-utmp-runlevel.service'],
|
/systemd-251/docs/ |
D | PORTABILITY_AND_STABILITY.md | 20 …et`, `emergency.target`, `poweroff.target`, `reboot.target`, `halt.target`, `runlevel[1-5].target`.
|
D | ENVIRONMENT.md | 311 SysV init script runlevel link farms.
|
/systemd-251/ |
D | meson.build | 2637 (conf.get('HAVE_SYSV_COMPAT') == 1 ? ['runlevel', 'telinit'] : []))
|
D | TODO | 1302 …: move utmp, wall, audit logic all into PID 1 (or logind?), get rid of systemd-update-utmp-runlevel
|