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..).
View 9 Replies
ADVERTISEMENT
Mar 10, 2011
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?
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
[code]....
View 1 Replies
View Related
Aug 25, 2010
difference between halt, shutdown and poweroff
View 3 Replies
View Related
May 23, 2009
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.
[Code]...
View 1 Replies
View Related
Oct 15, 2010
I have a zombie running on my computer(Ubuntu 10.10) and although I have tried killing it using the processes PID number it won't die.
Tasks: 137 total, 4 running, 132 sleeping, 0 stopped, 1 zombie
Cpu(s): 49.7%us, 50.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1016076k total, 938688k used, 77388k free, 25896k buffers
Swap: 3069948k total, 23140k used, 3046808k free, 584956k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1733 stephani 20 0 0 0 0 Z 46.7 0.0 52:34.34 transmiss <defunct>
Transmission has being running for almost 60 minutes and is consuming a very large amount of the CPU.
View 8 Replies
View Related
Oct 9, 2010
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.
View 2 Replies
View Related
Jan 23, 2011
Should I be using one or the other for different things?
View 1 Replies
View Related
Apr 9, 2011
I'm running a process on my university's supercomputer that takes several hours to run every time. Is there a command I can use to exit my ssh session without killing the process I'm running?
View 1 Replies
View Related
Feb 24, 2009
Is it possible, a torrent download from end of incomplete downloaded after halt of restart ?
View 3 Replies
View Related
Sep 7, 2010
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.
View 6 Replies
View Related
Dec 21, 2010
i have recently started a bit of sh coding. i was trying out sm commands from an sh file.
#!/bin/bash
txt1="top > temp.txt"
eval $txt1
[code]....
View 14 Replies
View Related
Jun 28, 2011
I was looking into a shell script which had a line "kill -0 [pid]" , I would like to know what the -0 flag does as i found it is not killing the particular [pid] process.
View 2 Replies
View Related
Jun 21, 2010
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.
View 1 Replies
View Related
Aug 23, 2010
I tried to stop mysqld deamon. It failed
Code:
[zabbix@CDCTGIMCLSA ~]$ sudo /etc/init.d/mysqld stop
Stopping MySQL: [FAILED]
[code]....
View 14 Replies
View Related
Mar 30, 2010
I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.
When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."
View 5 Replies
View Related
May 17, 2010
I have a recently new, less than 2 weeks old, Ubuntu 10.04 LTS installl. It is a clean install since the prior install of 10.04 LTS decided it would no longer allow me to login.
My problem is that I cannot shutdown or restart my machine. And I have no idea why it happened.
View 9 Replies
View Related
Apr 28, 2011
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.
View 9 Replies
View Related
Jul 8, 2011
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.
View 1 Replies
View Related
Feb 19, 2010
I'm in 9.10, I had KDE 4.3 now with SC 4.4, and it doesn't reboot or shut down from any graphical way I can access. Power management works otherwise, and I can shut down from the command line.
View 6 Replies
View Related
Apr 3, 2011
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?
View 3 Replies
View Related
May 3, 2011
Whatever I do, I can't get my linux to reboot, shutdown or hibernate.
Here is some new info:
I am using stripped down xfce4 with compiz and emerald.
Here's my .xinitrc
Code:
and my startup script
Code:
1. My login manager is SLIM which I use to autologin.
Code:
2.
Code:
3. Here is what happens when I try to reboot with the .xinitrc file I published above - it freezes on console login screen: [url]
4. Here is what happens if I change the .xinitrc file to this:
Code:
And script file:
Code:
It won't even login: [url]
View 2 Replies
View Related
May 3, 2010
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.
View 9 Replies
View Related
May 21, 2010
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.
View 9 Replies
View Related
Jul 13, 2010
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?
View 3 Replies
View Related
Nov 5, 2010
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
View 4 Replies
View Related
Aug 4, 2011
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.
View 1 Replies
View Related
Sep 29, 2010
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).
View 5 Replies
View Related
Jan 19, 2011
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.
View 9 Replies
View Related
Jan 11, 2010
I have been having a small problem since I upgraded from Jaunty to Karmic, whenever I shutdown or restart, root password is required due to multiple users being logged-in.
I have run ck-list-sessions, however I can not trace where (or what) session 5 is.
Code:
Since I have MythTV installed and there was a similar bug, I tried the following solution without any success: [url].
View 2 Replies
View Related
Mar 4, 2010
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.
View 6 Replies
View Related