debian - Linux Runlevel 1: start programm -
i'm trying automatically start process when come in runlevel 1
init 1
. it's watchdog has send life signal time hence in runlevel 1
too! when runlevel 1
entered each process killed , scheme switches runlevel s
. tried tell linux start process update-rc.d -f watchdog 99 1 s .
. resulting entries in /etc/rc1.d/
, /etc/rcs.d/
are:
/etc/rc1.d/
:
. . . s30killprocs -> ../init.d/killprocs s90single -> ../init.d/single s99watchdog -> ../init.d/watchdog . . .
/etc/rcs.d/
:
. . . s01glibc.sh -> ../init.d/glibc.sh s02hostname.sh -> ../init.d/hostname.sh s99watchdog -> ../init.d/watchdog . . .
a ps ax
after runlevel 1
entered sadfully doesn't homecoming watchdog process. have start manually.
pid tty stat time command 1 ? ss 0:00 init [s] 2 ? s 0:00 [kthreadd] 3 ? s 0:00 [ksoftirqd/0] 4 ? s 0:00 [kworker/0:0] 5 ? s 0:00 [kworker/u:0] 6 ? s 0:00 [rcu_kthread] 7 ? s< 0:00 [khelper] 8 ? s 0:00 [kworker/u:1] 104 ? s 0:00 [sync_supers] 106 ? s 0:00 [bdi-default] 108 ? s< 0:00 [kblockd] 119 ? s 0:00 [khubd] 219 ? s 0:00 [kswapd0] 220 ? s 0:00 [fsnotify_mark] 221 ? s< 0:00 [aio] 314 ? s< 0:00 [scsi_tgtd] 347 ? s< 0:00 [kpsmoused] 349 ? s 0:00 [kworker/0:1] 366 ? s 0:00 [w1_bus_master1] 390 ? s 0:00 [mmcqd/0] 395 ? s 0:00 [jbd2/mmcblk0p2-] 396 ? s< 0:00 [ext4-dio-unwrit] 475 ? s 0:00 [flush-179:0] 4532 ttys0 ss 0:00 init [s] 4533 ttys0 s 0:00 bash 4536 ttys0 r+ 0:00 ps ax
the scheme i'm working on debian gnu/linux 5.0 debarm
(embedded). hints or solution? give thanks you.
as said here:
run level 1 known 'single user' mode. more apt description 'rescue', or 'trouble-shooting' mode. in run level 1, no daemons (services) started.
you have several options around limitation:
don't utilize runlevel 1, not meant for start watchdog on login (if valid option), e.g..bashrc
. linux debian runlevel
No comments:
Post a Comment