Home
last modified time | relevance | path

Searched refs:runlevel (Results 1 – 18 of 18) sorted by relevance

/systemd-251/src/update-utmp/
Dupdate-utmp.c72 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/
Dinitctl.c56 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/
Dsystemctl-compat-runlevel.c69 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()
Dsystemctl-compat-halt.c74 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()
Dmeson.build12 'systemctl-compat-runlevel.c',
13 'systemctl-compat-runlevel.h',
Dsystemctl-sysv-compat.h6 int talk_initctl(char runlevel);
Dsystemctl-sysv-compat.c47 .runlevel = rl, in talk_initctl()
/systemd-251/src/shared/
Dutmp-wtmp.h13 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
Dutmp-wtmp.c27 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()
Dinitreq.h68 int runlevel; /* Runlevel to change to */ member
/systemd-251/units/
Dsystemd-update-utmp-runlevel.service.in12 Documentation=man:systemd-update-utmp-runlevel.service(8) man:utmp(5)
23 ExecStart={{ROOTLIBEXECDIR}}/systemd-update-utmp runlevel
Dmeson.build251 ['systemd-update-utmp-runlevel.service', 'ENABLE_UTMP HAVE_SYSV_COMPAT',
329 mkdir_p.format(systemunitdir / 'runlevel@0@.target.wants'.format(i)))
/systemd-251/test/
Dsysv-generator-test.py115 def make_link(prefix, runlevel): argument
116 d = os.path.join(self.rcnd_dir, 'rc{}.d'.format(runlevel))
/systemd-251/man/rules/
Dmeson.build74 ['runlevel', '8', [], 'HAVE_SYSV_COMPAT'],
1038 ['systemd-update-utmp', 'systemd-update-utmp-runlevel.service'],
/systemd-251/docs/
DPORTABILITY_AND_STABILITY.md20 …et`, `emergency.target`, `poweroff.target`, `reboot.target`, `halt.target`, `runlevel[1-5].target`.
DENVIRONMENT.md311 SysV init script runlevel link farms.
/systemd-251/
Dmeson.build2637 (conf.get('HAVE_SYSV_COMPAT') == 1 ? ['runlevel', 'telinit'] : []))
DTODO1302 …: move utmp, wall, audit logic all into PID 1 (or logind?), get rid of systemd-update-utmp-runlevel