mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 13:47:41 +00:00
fix initial run level
I did a little investigation about runlevels and i think we can assume runlevels 2-5 as normal. So, we can check if system was in runlevel 2-5 and proc count is 1 and now we are in 0/6. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Denis Rizaev <Denis.Rizaev@trueoffice.ru>
This commit is contained in:
parent
fa9ab20562
commit
8ff3518040
@ -83,7 +83,7 @@ static int utmp_handler(int fd, void *data, struct lxc_epoll_descr *descr)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (ntasks == 1 && prevrun_level == '3') {
|
||||
if (ntasks == 1 && prevrun_level > '1' && prevrun_level < '6') {
|
||||
|
||||
DEBUG("run level is %c/%c", prevrun_level, currun_level);
|
||||
DEBUG("there is %d tasks remaining", ntasks);
|
||||
|
Loading…
Reference in New Issue
Block a user