Gonda, Rumi wrote:
>
> Has anyone looked into speeding up the boot and shutdown
> process for linux in an embedded environment? Cannot
> sacrifice disk/data corruption though. Meaning that will
> probably have to do fsck on startup and flush on shutdown.
I am sure, there are better solutions than the following:
Kernel 2.2.x has a feature called "SysRequest-Key".
When typing the following sequence:
ALT+SYREQ+S
ALT+SYREQ+U
ALT+SYREQ+B
then the harddisks will be (S)ynced and (U)nmounted,
and the system will be re(B)ooted immediatly.
So a shutdown-process could be performed within
a few (maybe downtu one) secondes.
Now, you could have a look into the source-code
how it is possible to activate this functions
within programm control.
But if you have a database or similar services running,
then this would be not a good way since some
service don't like to be interrupted in that manner.