Hello all,

I need two specific way to halt my embedded Linux system.
The first halt mode is used to halt the system while maintaining watchdog 
trigger.
The second halt mode is used to halt the system without maintaining watchdog 
trigger.

These two behavior are working fine, but actually, I test them only with 
poweroff (runlevel 0) and by modifing halt script.
I would have an other specific runlevel or parameter to switch these two 
differents halt modes. Is this possible?

So the system uses sysvinit and runlevel 0 is halt. Runlevel 6 is reboot and 
runlevel 5 is default (multi user).

The default runlevel 0 is called with poweroff and halt is executed.

But as I need 2 kind of halt scripts, I suppose I have to use an existent 
unused runlevel like runlevel 4 or
create a new one (even if it seems to be impossible).

At first, I would give a parameter to poweroff to tell it:

enter to runlevel0 but execute halt1 or halt2: like this

poweroff 1
poweroff 2

But it seems it's not at all possible so I think best idea is to use an other 
runlevel.

Does someone already heard about this kind of specific needs?
Maybe a better solution exists with Yocto project so I post it here.

Thanks for all, by advance, best reguards
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52744): https://lists.yoctoproject.org/g/yocto/message/52744
Mute This Topic: https://lists.yoctoproject.org/mt/81399014/21656
Mute #runlevel:https://lists.yoctoproject.org/g/yocto/mutehashtag/runlevel
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Mute #poweroff:https://lists.yoctoproject.org/g/yocto/mutehashtag/poweroff
Mute #halt:https://lists.yoctoproject.org/g/yocto/mutehashtag/halt
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to