Ubuntu :: Killing All The Process On Restart/halt/shutdown Instead Waiting For Scripts?
May 9, 2010
I haveing a big problem atm (just after to upgrade to 10.04). I have a simply and easy script that sent a halt command to every KVM virtual machine actually running into the server. this script is/and was) palced as a init-rc script in rc0/rc1 and rc6 lvls. Just after to upgrade, I have noticed that this script is executed but the system ignore the time that it require to finish (giving time to correctly stop a single virtual machine). Aftert 5 second it start sending SIG-TERM and SIGN-KILL to any currect process and then reboot/halt.
I have just done a new script using upstart and I got just the same result. What is happending? why is the waiting the init secuence for a valid/or_not termination of any init script. I am so sorry for this crap english I have never study this language so I try to do my best anytime I speak it (or try ti..).
I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?
I'm running V5.3 (newly installed) on an FJ E8020 laptop. The problem I have is when shutting down (*not* rebooting). NetworkManager fails to stop and after (during?) the postfix shutdown, the system seems to hang.I cannot access via another screen or remotely. I can't find any clues in the log files.
I want to capture PID of a program and kill it using the PID if the program is been executing beyond 5 seconds.The problem I'm facing is I have another copy of the same program running under different shell script, and the above code is killing both the process. How do I specifically kill the program which has started under the current running shell script.
In the comments section of this blog, the commenter "Pratik" claims that you can edit a running bash script, without killing it, and have the changes picked up by the running script. He claims you can do this by editing files in /proc. Now, I know how to find the /proc folder that contains the data on the running process, Code: cd /proc/`pgrep process_name` But I can't figure out what I should do if I want to edit a running bash script.
I am trying to kill child process without killing the parent and seem to be having issues doing so. I have tried quite a few different commands and the end result is either killing all of them including the parent or not killing them at all.
I have just installed 11.04 on my Acer Z5610 and it won't shutdown or even restart noramally. I have to force shutdown every time. I installed the ati graphics drivers but still no change. What could be wrong?I have reinstalled 4 times, using usb and cd.
I have assembled an Intel D915PDT Administration Intel Desktop motherboard with an Intel 651 Processor which has 3.40 GHz 800 MHz FSB 2MB L2 Cache and 1GB DDR1 400 MHz RAM also GeForce 8400GS 512 Graphics Cards. But this PC have a problem, if once I shut it down I cant restart it again, but the next day it works properly. I tried in various operating systems like Windows XP service pack 2, pack 1, Windows 7 Professional and Ultimate 32bit and I have checked several times the BIOS settings properly but the problem is still the same.
I have just installed ubuntu 10.10 so i am new to linux operating systems.In the top right hand corner where the shutdown button is with the options to restart, mine is not there.Could someone please tell me how to get back this button or another way that I restart so I can access my windows boot?
This is a really weird issue. I'm using 10.04 and on occasion when I boot into Ubuntu the sound doesn't work along with losing the ability to shutdown via the menu. When I click shutdown it just logs out. I need to shut down my PC by using the terminal.
It's strange because the sound and shutdown work as expected most of the time. The issue is seemingly random.
I installed 10.04 on my old Dell Inspiron 600m laptop. After using it for about an hour, I was suddenly had no option to shutdown or restart the system when logged in on the main and only account. The 'Shut Down' applet on my bar was greyed out and the shutdown option was missing from the system menu.
I removed the 'Shut Down" applet and was unable to re-add it afterwards (wasn't a selection when adding to panel). If I log off, selecting shutdown or restart from the login screen does nothing.
'Sudo shutdown now' will shut it down, though it won't power the system off; it just hangs on an all-white screen.
I saw other posts suggesting Open Office Quickstart was the culprit, though I am not running this.
sometime when i try to shutdown or restart my laptop with Ubuntu 10.04 it freezes and this is the last message : init: gdm main process (991) killed by KILL signalith status 255nal executable binary formats[ OK ] *Stopping Likewise DCE/RPC Endpoint Mapper: dcerpcd i could not find shutdown log file if is needed where is it?
On two of my machines that have Ubuntu 10.10 on them, I cannot shut down, restart or log out by pressing the "power button" on Gnome panel. I can not even do "Alt + Ctl + Backspace" either. However, I can shutdown or restart by: Quote: sudo shutdown -h now sudo shutdown -r now
I'm running Ubuntu 11.04 on an IBM Thinkpad T60, when I try to Logoff, Restart, or Shutdown the system just goes to a black screen and I'm forced to do a hard reset to restart the system. I did a reinstall and things seemed to be working fine until I applied updates and reloaded my package list from my previous install then I got the same conditions as before. I suspect that this my be a result of a bad package or update. What I want to know is if their is a way to display console text of the shutdown process so I can see where the system hangs and possibly remove the problem application. I have an AMD 64 bit desktop running with the same package lists and have no issues I suspect it is a hardware specific issue for the laptop or an error with a 32 bit install.
My normal day to day user can't shutdown, restart, logout, etc...It just doesn't do anything at all when I try. This wasn't the case three days ago, just fresh installed and seeing the same problem (so it must be some setting saved in my home folder which wasn't wiped).
Running Ubuntu 10.10 on a Gateway laptop (new). When I select "shutdown," it does a restart instead. All latest updates and additional drivers are installed. I may have upgraded to 10.10 from 10.04 - can't recall now. I have 10.10 on a Toshiba laptop that works fine.
Whenever I start my PC, the information of 'First Boot device' in BIOS changes from hard disk to CD-Rom. It happens with new start, I mean, if I restart my computer after resetting First boot device to hard disk, then priority does not change. Just as I switch on computer, a black screen appears with the message: CMOS - checksum error - defaults loaded press F1 to continue, DEL to enter setup
Recently it used to happen, that PC was not reading my hard disk containing GRUB. I have 2 hard disks. I switched the power cables of two hard disks. After that, both hard disks were shown by BIOS but the above mentioned error started appearing. Also grub takes too much time to load. It takes almost 20 seconds. Earlier I was using 'Puppy Linux'. In that, Grub was loading in fraction of second.