Questions tagged [kill]

125 questions
10
votes
3 answers

How to kill a process in Linux if kill -9 has no effect

I imagine that kill -9 still just sends a signal to a process. If the process is not behaving well, I would imagine that kill -9 would have no effect. Indeed, today for the first time I saw kill -9 have no effect when sent to a stuck ruby process.…
cat pants
  • 2,273
  • 10
  • 35
  • 46
10
votes
5 answers

Bash snippet for killing a process until it's dead?

I'm trying to write a robust bash script, and in it I create a background process. At the end of the script, I want to kill it. I have it's PID. I was thinking of somthing like this while [[ ps ef $PID ]] ; do kill $PID sleep 0.5 done Any…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
10
votes
4 answers

UNIX permissions to allow group users to kill each others' processes

Let's say we have a group (dev) which has many users and a shared development directory with g+rwx permissions on all contained files. Is this setup sufficient so that any dev user can kill a process launched by any other dev user (assuming the…
maerics
  • 203
  • 1
  • 2
  • 7
8
votes
2 answers

Remove a zombie process from the process table

I've got an annoying zombie process that gets adopted by init, and it won't go away. I've read there is a way to create a dummy process, attach the zombie as a child of that new process and then kill it, removing it from the process table. How would…
Jelle De Loecker
  • 1,094
  • 6
  • 17
  • 30
6
votes
1 answer

SSSD process won't die

Thanks for taking the time to check out my problem. I'm currently working on an issue that has only appeared once before. Back on Jan 3rd when this first appeared we were able to reboot the server and everything seemed fine, but now it is back.…
omnivir
  • 99
  • 1
  • 1
  • 3
6
votes
1 answer

How do I know if the Linux server killed my process and which process it killed?

It seems my server killed a process due to it using too much RAM. Is this possible? If it can happen, how can I know when and what process it killed?
Phil
  • 265
  • 2
  • 6
  • 13
6
votes
4 answers

Kill process by command name

I would like to kill a java process based on the command name... Whats the best way to do it? (i.e. when you do ps -f the name in the CMD column).
DD.
  • 3,114
  • 11
  • 35
  • 50
6
votes
2 answers

How to kill ostensibly immortal process?

I had some huge file transfers operating on an NFS mount. The server on which the mount point resided was carelessly rebooted, and now the server from which these large transfers were initiated seems to be bogged down by them. If I run top, I see…
DeeDee
  • 333
  • 2
  • 7
  • 16
6
votes
3 answers

Kill a process run by a specific user

Let's say that I have several users running ''ruby'' processes simultaneously. How do I write a shell command to kill the ''ruby'' process of one particular user? (I'm on CentOS 5.5.)
Trevor Burnham
  • 364
  • 2
  • 3
  • 16
5
votes
2 answers

After kill -9 process won't disappear and port is still bound

We have a Java server application running on Mac OS X. Occasionally this application has become unresponsive, and we have resorted to killing it with kill -9. However, the process doesn't disappear; it still appears to ps, with parentheses around…
5
votes
2 answers

How can I safely kill a long running MSSQL query?

Recently we had a SQL job inserting into a database. The query had been running for a few days unecessarily so it was killed using KILL SPID. The process then began to roll back for several days and just seemed to hang there. Running KILL SPID WITH…
Anonymous
  • 193
  • 1
  • 1
  • 7
4
votes
2 answers

Cannot kill VMware VM

I am encountering a very stubborn VM (2008R2, VMware tools just slightly outdated, the ones that came with 5.5U3a) on a ESXi 6.0U2 cluster running on Dell R630 servers. From the outside, the VM becomes unresponsive after some time - might be a day,…
mexell
  • 41
  • 2
4
votes
2 answers

Cant kill process on Windows Server 2008!! - Thread in Wait:Executive State

I hope someone can help me with our issue we are having. We have a major issue with a process that we can not kill and the only way to get rid of the process is to reboot the machine. I have tried killing it from the normal task manager but no…
adrian
  • 45
  • 1
  • 3
4
votes
7 answers

I have a perl script that is supposed to run indefinitely. It's being killed... how do I determine who or what kills it?

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead. I'm one of only two people with access to the server, and the other guy swears that it isn't…
John O
  • 283
  • 3
  • 15
4
votes
1 answer

How to break from infinite loop, caused by PHP script running as root?

I have PHP script running right now with root permissions that starts from the following lines: set_time_limit(0); ini_set('log_errors', 1); ini_set('error_log', "log.txt"); It was accidentally started by web management panel from root user as cron…
Galichev Anton
  • 153
  • 1
  • 1
  • 4
1
2
3
8 9