So. I should be able to activate debug mode by passing
on the kernel command line... Or
... instructions differ depending where I read them.
Nontheless: either way did not work.
... however did. This means I cannot get all the debugging messages from the very first steps.
Code: Select all
[ 323.787325] finit[1]: Debug mode enabled
[ 341.756951] finit[1]: api_cb():Setting new runlevel 0
[ 341.757053] finit[1]: sm_runlevel():Flushing pending .conf file events ...
[ 341.757086] finit[1]: sm_step():state: running, runlevel: 2, newlevel: 0, teardown: 0, reload: 0
[ 341.757120] finit[1]: service_step(): tty:1( 945): running enabled/clean cond:on
[ 341.757447] finit[1]: service_step(): tty:2( 975): running enabled/clean cond:on
[ 341.757747] finit[1]: service_step(): tty:S0( 977): running enabled/clean cond:on
[ 341.758057] finit[1]: service_step(): pre-shutdown( 0): halted disabled/clean cond:on
[ 341.758358] finit[1]: service_step(): keventd( 944): running enabled/clean cond:on
[ 341.758656] finit[1]: cond_set_noupdate():service/keventd/ready
[ 341.758967] finit[1]: cond_set_path():/run/finit/cond/service/keventd/ready <= 2
[ 341.759355] finit[1]: sm_step():state: runlevel/change, runlevel: 2, newlevel: 0, teardown: 0, reload: 0
[ 341.759600] finit[1]: cond_set_oneshot():hook/sys/shutdown
[ 341.759868] finit[1]: cond_set_oneshot_noupdate():hook/sys/shutdown => /run/finit/cond/hook/sys/shutdown
[ 341.760197] finit[1]: service_step(): pre-shutdown( 0): halted enabled/clean cond:on
[ 341.761107] finit[1]: service_step(): pre-shutdown( 0): -> waiting
[ 341.761378] finit[1]: service_step(): pre-shutdown( 0): waiting enabled/clean cond:on
[ 341.761681] finit[1]: service_step(): pre-shutdown( 0): -> starting
[ 341.761980] finit[1]: service_step(): pre-shutdown( 0): starting enabled/clean cond:on
[ 341.763906] finit[1]: cgroup_leaf_init():group system, name finit, pid 1040, cfg
[ 341.764091] finit[1]: group_init():path /sys/fs/cgroup/system/finit, leaf 1, cfg
[ 341.764534] finit[1]: Calling /bin/sh /usr/local/libexec/init_rc.sh shutdown
[ 341.764982] finit[1]: exec_runtask():Calling /bin/sh /usr/local/libexec/init_rc.sh shutdown
[ 341.910668] finit[1]: iwatch_add1():adding new watcher for path /sys/fs/cgroup/system/finit/cgroup.events
[ 341.910764] finit[1]: service_start():Starting pre-shutdown as PID 1040
[ 341.910805] finit[1]: Starting pre-shutdown[1040]
[ 341.911195] finit[1]: service_step(): pre-shutdown(1040): -> running
[ 341.911530] finit[1]: service_step(): pre-shutdown(1040): running enabled/clean cond:on
[ 341.911909] finit[1]: sm_step():Setting new runlevel --> 0 <-- previous 2
[ 341.912079] finit[1]: FINIT - the fast init? v4.14, entering runlevel 0
[ 341.912411] finit[1]: sm_step():Stopping services not allowed in new runlevel ...
[ 341.912790] finit[1]: service_step(): tty:1( 945): running disabled/clean cond:on
[ 341.913234] finit[1]: service_stop():Sending SIGHUP to pid:945 name:tty:1(dialog_login.sh)
[ 341.913508] finit[1]: tty:1[945], stopping, sending SIGHUP ...
[ 341.913711] finit[1]: service_stop():kill(945, 1) => rc 0, errno 2
[ 341.914048] finit[1]: svc_set_state():tty:1 is stopping, wait 3 sec before sending SIGKILL ...
[ 341.914418] finit[1]: service_step(): tty:1( 945): -> stopping
[ 341.914757] finit[1]: service_step(): tty:1( 945): stopping disabled/clean cond:on
[ 341.915124] finit[1]: service_step(): tty:2( 975): running disabled/clean cond:on
[ 341.915528] finit[1]: service_stop():Sending SIGHUP to pid:975 name:tty:2(getty tty2)
[ 341.915834] finit[1]: tty:2[975], stopping, sending SIGHUP ...
[ 341.916231] finit[1]: service_stop():kill(975, 1) => rc 0, errno 2
[ 341.916259] finit[1]: svc_set_state():tty:2 is stopping, wait 3 sec before sending SIGKILL ...
[ 341.916457] finit[1]: service_step(): tty:2( 975): -> stopping
[ 341.916793] finit[1]: service_step(): tty:2( 975): stopping disabled/clean cond:on
[ 341.917151] finit[1]: service_step(): tty:S0( 977): running disabled/clean cond:on
[ 341.917527] finit[1]: service_stop():Sending SIGHUP to pid:977 name:tty:S0(sh)
[ 341.917834] finit[1]: tty:S0[977], stopping, sending SIGHUP ...
[ 341.918195] finit[1]: service_stop():kill(977, 1) => rc 0, errno 2
[ 341.918354] finit[1]: svc_set_state():tty:S0 is stopping, wait 3 sec before sending SIGKILL ...
[ 341.918703] finit[1]: service_step(): tty:S0( 977): -> stopping
[ 341.918864] finit[1]: service_step(): tty:S0( 977): stopping disabled/clean cond:on
[ 341.919215] finit[1]: service_step(): pre-shutdown(1040): running enabled/clean cond:on
[ 341.919563] finit[1]: service_step(): keventd( 944): running disabled/clean cond:on
[ 341.919773] finit[1]: service_stop():Sending SIGTERM to pid:944 name:keventd(keventd)
[ 341.920078] finit[1]: keventd[944], stopping, sending SIGTERM ...
[ 341.920459] finit[1]: service_stop():kill(944, 15) => rc 0, errno 2
[ 341.920767] finit[1]: svc_set_state():keventd is stopping, wait 3 sec before sending SIGKILL ...
[ 341.921137] finit[1]: cond_clear_noupdate():service/keventd/
[ 341.921292] finit[1]: cond_set_path():/run/finit/cond/service/keventd/ <= 0
[ 341.921539] finit[1]: cond_clear_noupdate():service/keventd/ready
[ 341.921820] finit[1]: cond_set_path():/run/finit/cond/service/keventd/ready <= 0
[ 341.922196] finit[1]: cond_clear_noupdate():service/keventd/running
[ 341.922511] finit[1]: cond_set_path():/run/finit/cond/service/keventd/running <= 0
[ 341.923029] finit[1]: service_step(): keventd( 944): -> stopping
[ 341.923188] finit[1]: service_step(): keventd( 944): stopping disabled/clean cond:on
[ 341.923871] finit[1]: sm_step():state: runlevel/wait, runlevel: 0, newlevel: -1, teardown: 1, reload: 0
[ 341.924223] finit[1]: sm_step():Waiting to collect tty:1, cmd /bin/getty(945) ...
[ 341.924391] finit[1]: networking():Taking down networking ...
[ 341.961976] finit[1]: networking():Calling all network down hooks ...
[ 341.962078] finit[1]: cond_set_oneshot():hook/net/down
[ 341.962406] finit[1]: cond_set_oneshot_noupdate():hook/net/down => /run/finit/cond/hook/net/down
[ 341.962753] finit[1]: service_step(): pre-shutdown(1040): running enabled/clean cond:on
[ 341.963092] finit[1]: api_cb():Failed sending ACK/NACK back to client
[ 341.963447] finit[1]: sigchld_cb():Collected child PID 944, status: 0
[ 341.963754] finit[1]: service_monitor():collected keventd(944), normal exit: 1, signaled: 0, exit code: 0
[ 341.964098] finit[1]: service_monitor():Killing lingering children in same process group ...
[ 341.964781] finit[1]: service_step(): keventd( 0): stopping disabled/clean cond:on
[ 341.965112] finit[1]: service_step():keventd: stopped, cleaning up timers and conditions ...
[ 341.965440] finit[1]: cond_clear_noupdate():pid/keventd
[ 341.965611] finit[1]: cond_set_path():/run/finit/cond/pid/keventd <= 0
[ 341.965794] finit[1]: cond_clear_noupdate():service/keventd/
[ 341.966160] finit[1]: cond_set_path():/run/finit/cond/service/keventd/ <= 0
[ 341.966879] finit[1]: cond_set_oneshot():service/keventd/halted
[ 341.967173] finit[1]: cond_set_oneshot_noupdate():service/keventd/halted => /run/finit/cond/service/keventd/halted
[ 341.967541] finit[1]: service_step(): keventd( 0): -> halted
[ 341.967836] finit[1]: service_step(): keventd( 0): halted disabled/clean cond:on
[ 341.968179] finit[1]: sm_step():state: runlevel/wait, runlevel: 0, newlevel: -1, teardown: 1, reload: 0
[ 341.968527] finit[1]: sm_step():Waiting to collect tty:1, cmd /bin/getty(945) ...
[ 341.968713] finit[1]: sigchld_cb():Collected child PID 945, status: 1
[ 341.968864] finit[1]: service_monitor():collected tty:1(945), normal exit: 0, signaled: 1, exit code: 0
[ 341.969199] finit[1]: service_monitor():Killing lingering children in same process group ...
[ 341.969590] finit[1]: service_step(): tty:1( 0): stopping disabled/clean cond:on
[ 341.969866] finit[1]: service_step():tty:1: stopped, cleaning up timers and conditions ...
[ 341.970207] finit[1]: cond_clear_noupdate():pid/tty:1
[ 341.970374] finit[1]: cond_set_path():/run/finit/cond/pid/tty:1 <= 0
[ 341.970929] finit[1]: service_step(): tty:1( 0): -> halted
[ 341.971218] finit[1]: service_step(): tty:1( 0): halted disabled/clean cond:on
[ 341.971550] finit[1]: sm_step():state: runlevel/wait, runlevel: 0, newlevel: -1, teardown: 1, reload: 0
[ 341.971900] finit[1]: sm_step():Waiting to collect tty:2, cmd /bin/getty(975) ...
[ 341.972239] finit[1]: sigchld_cb():Collected child PID 975, status: 1
[ 341.972553] finit[1]: service_monitor():collected tty:2(975), normal exit: 0, signaled: 1, exit code: 0
[ 341.972882] finit[1]: service_monitor():Killing lingering children in same process group ...
[ 341.973268] finit[1]: service_step(): tty:2( 0): stopping disabled/clean cond:on
[ 341.973552] finit[1]: service_step():tty:2: stopped, cleaning up timers and conditions ...
[ 341.973887] finit[1]: cond_clear_noupdate():pid/tty:2
[ 341.974072] finit[1]: cond_set_path():/run/finit/cond/pid/tty:2 <= 0
[ 341.974249] finit[1]: service_step(): tty:2( 0): -> halted
[ 341.974403] finit[1]: service_step(): tty:2( 0): halted disabled/clean cond:on
[ 341.974745] finit[1]: sm_step():state: runlevel/wait, runlevel: 0, newlevel: -1, teardown: 1, reload: 0
[ 341.975079] finit[1]: sm_step():Waiting to collect tty:S0, cmd /bin/getty(977) ...
[ 341.975421] finit[1]: sigchld_cb():Collected child PID 977, status: 1
[ 341.975584] finit[1]: service_monitor():collected tty:S0(977), normal exit: 0, signaled: 1, exit code: 0
[ 341.975914] finit[1]: service_monitor():Killing lingering children in same process group ...
[ 341.976112] finit[1]: service_step(): tty:S0( 0): stopping disabled/clean cond:on
[ 341.976443] finit[1]: service_step():tty:S0: stopped, cleaning up timers and conditions ...
[ 341.976767] finit[1]: cond_clear_noupdate():pid/tty:S0
[ 341.977101] finit[1]: cond_set_path():/run/finit/cond/pid/tty:S0 <= 0
[ 341.977276] finit[1]: service_step(): tty:S0( 0): -> halted
[ 341.977434] finit[1]: service_step(): tty:S0( 0): halted disabled/clean cond:on
[ 341.977750] finit[1]: sm_step():state: runlevel/wait, runlevel: 0, newlevel: -1, teardown: 1, reload: 0
[ 341.978081] finit[1]: sm_step():All services have been stopped, calling runlevel change hooks ...
[ 341.978418] finit[1]: cond_set_oneshot():nop
[ 341.978578] finit[1]: service_step(): pre-shutdown(1040): running enabled/clean cond:on
[ 341.978913] finit[1]: sm_step():Starting services new to this runlevel ...
[ 341.979242] finit[1]: service_step(): tty:1( 0): halted disabled/clean cond:on
[ 341.979571] finit[1]: service_step(): tty:2( 0): halted disabled/clean cond:on
[ 341.979911] finit[1]: service_step(): tty:S0( 0): halted disabled/clean cond:on
[ 341.980236] finit[1]: service_step(): pre-shutdown(1040): running enabled/clean cond:on
[ 341.980606] finit[1]: service_step(): keventd( 0): halted disabled/clean cond:on
[ 341.980911] finit[1]: sm_step():state: runlevel/clean, runlevel: 0, newlevel: -1, teardown: 0, reload: 0
[ 342.234524] finit[1]: do_iterate_proc():PID 830 is still alive (/sbin/init)
[ 342.485984] finit[1]: do_iterate_proc():PID 830 is still alive (/sbin/init)
[ 342.737409] finit[1]: do_iterate_proc():PID 830 is still alive (/sbin/init)
[ 342.988845] finit[1]: do_iterate_proc():PID 830 is still alive (/sbin/init)
[ 343.038319] finit[1]: conf_save_service():File /var/lib/run/finit/system/keventd.conf already exists, overwriting.
[ 343.141123] finit[1]: Starting post-init[1094]
[ 343.145440] finit[1]: Starting keventd[1170]
[ 344.142330] finit[1]: FINIT - the fast init? v4.14, entering runlevel 2
[ 344.144575] finit[1]: Starting getty on /dev/tty1
[ 344.190670] finit[1]: Starting tty:1[1171]
[ 344.192182] finit[1]: Starting tty:2[1207]
[ 344.193917] finit[1]: Starting tty:S0[1208]
[ 344.194497] finit[1]: Starting getty on /dev/ttyS0
[ 362.610817] clocksource: timekeeping watchdog on CPU4: hpet wd-wd read-back delay of 185260ns
[ 362.610827] clocksource: wd-tsc-wd read-back delay of 151950ns, clock-skew test skipped!
I don't see anything unusual.
also seem to be just a loop checking if a process has terminated itself.
I so much would like to use finit with this project.