How to cancle shutdown
Hi All,
I am having a situation, if some have to fire some command after firing shutdown or init 0. is there any possibilities to cancel shutdown process if yes then how? one more question: how a computer know that i have to shutdown if a user fire shutdown or init 0(just want to know the actual shutdown process what files the shutdown process calls and how it prevents a user to login (over the network)while shutting down.) |
(never tried this)try
sudo pkill -9 init |
Better
Code:
shutdown -c |
Hi business_kid,
you mean to say instead of init 0 or shutdown command we must fire sudo pkill -9 init. can you please elaborate this command i am afraid that this command is safe to use this will kill the init process abruptly leaving system in no state. Please correct me if i am wrong. |
Quote:
I agree with this post "# shutdown -c" is what I always use to cancel any shutdown |
Hi bathory,
where to give this command, after firing the shutdown command the shell is no longer exist. i am trying to say that how can we cancel the on going shutdown process and how much time we have? means is there any particular process, this cancelling command works before that process get killed. |
shutdown -c
You will want to move to another terminal or tty instance.
If in X, just open another terminal and type... Code:
# shutdown -c Code:
# shutdown -c |
Quote:
|
All times are GMT -5. The time now is 10:19 PM. |