Questions tagged [kill]
125 questions
4
votes
5 answers
Give me my KILL-power when something goes wrong
We've had it a few times now. Suddenly our production server won't respond because a process is in an infinite loop, or the MySQL server stops serving new requests because one query is blocking everything...
We SSH to the server and use ps aux or…
![](../../users/profiles/42676.webp)
Konerak
- 435
- 2
- 18
4
votes
2 answers
kill -9 doesn't work
I have a server with 3 oracle instances on it, and the file system is nfs with netapp. After shutdown the databases, one process for each database doesn't quit for a long time. Each kill -i doesn't work. I tried to truss, pfile it, the command…
![](../../users/profiles/41014.webp)
user41014
- 143
- 4
3
votes
4 answers
How can I prevent users using kill in bash?
I've tried
chmod 700 /bin/kill
chown root /bin/kill
but a normal user can still do:
kill blah
... and successfully kill the app 'blah' running under the user's account.
I'm using Ubuntu (8.10). The bash shell apparently has the kill command…
![](../../users/profiles/26784.webp)
Ben L
- 133
- 6
3
votes
3 answers
How to kill an "exiting" process on OS X (state = E)
I have a process on my Mac OS X system which is in state E ("The process is trying to exit."):
% ps auwwwxc | grep -si JavaApplicationS
sbwoodside 84547 0.0 0.0 0 0 ?? E Mon12am 0:00.00 (JavaApplicationS)
kill -9 84547…
![](../../users/profiles/26447.webp)
Simon Woodside
- 456
- 1
- 7
- 15
3
votes
1 answer
Centos killing parent shell wont kill background child processes?
I am learning for the Red Hat certification. In the book it is stated that since RHEL 7 (so also Centos latest version) that you dont need to use nohup anymore if you launch a process in the background, if you kill the parent shell the started…
![](../../users/profiles/208472.webp)
dragosb
- 171
- 1
- 9
3
votes
2 answers
Why kill makes a bash script exit
after the kill statement the script prints "Terminated" and the following lines never get executed:
#!/bin/bash
kill -9 `ps -ef | grep MailSender | grep -v grep | awk '{print $2}'`
echo starting
./MailSender
I have even tried to add set +e at the…
![](../../users/profiles/62738.webp)
SCL
- 855
- 1
- 10
- 13
3
votes
1 answer
Kill process group not working
I'm on Debian GNU/Linux.
The man page for "kill" says I can use negative PID value to kill process group, but when running on command line, it does not work:
$ /bin/kill -9 -21581
/bin/kill: invalid option -- '2'
Usage:
kill [options] …
![](../../users/profiles/70140.webp)
mehturt
- 91
- 1
- 9
3
votes
1 answer
What is oom-kiler and why is it happening ? Should I avoid it?
I have a server that is now having "invoked oom-killer" many times a day ! I never saw that and even after reading tons of forums on Internet I'm still puzzled : is it a big problem ? Why is it happening ? And what is the cause of that ? Should I…
![](../../users/profiles/59404.webp)
db_ch
- 638
- 5
- 14
- 20
3
votes
3 answers
How do I kill a runaway cronjob
I have a cronjob that is set to run constantly. It's a php file that streams data from twitter. However twitter goes down every once a while or we lose connection so I have cron checking back every minute to try and run the file. The php script…
![](../../users/profiles/83471.webp)
Caimen
- 133
- 6
3
votes
3 answers
When will kill PID fail?
I'm trying to kill 31216 31617,but after 10 times,that process still survives.
Why?
Is there a way to force it dead?
root 31216 1 0 10:49 ? 00:00:00 nginx: master process /root/nginx-1.0.2/objs/nginx -c…
![](../../users/profiles/83080.webp)
locale
- 373
- 2
- 4
- 10
3
votes
4 answers
I want to find something and kill it
I keep running these two commands over and over:
$ ps aux | grep php | grep -v grep
www-data 3663 100 14.8 328620 304900 ? R 12:56 0:54 php /home/jason/projects/mcif/./symfony import:process --id=91
jason@gob:~/projects/mcif$ sudo kill…
![](../../users/profiles/53516.webp)
Jason Swett
- 1,458
- 4
- 23
- 37
3
votes
2 answers
Guaranteeing Shell Responsiveness on Pegged System
So my system is getting DOS'd, or I've just opened a kind-of-huge file (openstreetmaps planet.osm). The system goes totally unresponsive... so unresponsive that it'll take about 10 minutes to get into my shell, run top, and kill the offending…
![](../../users/profiles/28956.webp)
bundini
- 263
- 2
- 9
2
votes
2 answers
kill both parent and child processes
I am running a bash script as a background job. The bash script calls a time-consuming executable. If I am not wrong, the running of the bash script is the parent process and the running of the executable is the child process.
(1) when I look at the…
![](../../users/profiles/16981.webp)
Tim
- 1,467
- 3
- 25
- 38
2
votes
1 answer
Are these two commands to kill a process effectively similar?
I'm looking at some init.d scripts, and a number of them use this what is essentially this command in their "stop)" target:
kill $(pidof ${DAEMON_NAME})
The pidof ${DAEMON_NAME} is actually a script function that checks the status code and calls…
![](../../users/profiles/5592.webp)
Jamie
- 1,274
- 7
- 22
- 39
2
votes
3 answers
Kill defunct xrdp session --- xrdp users cannot log on
user cannot connect to server over xrdp
tested using linux remoted desktop client, as well as windows remote desktop client
error messages is "error: problem connecting"
/var/log/sesman.log
shows this error
[20170419-22:06:02] [INFO ] scp thread…
![](../../users/profiles/411442.webp)
xrdp
- 21
- 1
- 1
- 2