Questions tagged [kill]
125 questions
0
votes
1 answer
ssh remote command: Killed by signal 15
script:
#!/usr/bin/env bash
set -e
set -u
set -x
set -o pipefail
hosts=(
host1
host2
)
for host in ${hosts[@]}
do
ssh $host 'pids=$(ps -aux|pgrep -f "/usr/bin/nmon"); kill $pids; wait $pids 2>/dev/null'
done
with output:
+ for host in…

Honghe.Wu
- 109
- 1
- 4
0
votes
3 answers
Is it safe to stop a Jboss EAP server with Kill -9?
We are having an internal debate about this. Running jboss eap 7 on RHEL.
We currently have a script to stop the server by simply running kill -9 on the java process.
My suggestion was to use the proper jboss command to shut down:
jboss-cli…

OldProgrammer
- 135
- 9
0
votes
2 answers
How to make a shell script return 0 even after getting killed
I have a scheduled shell script running in a distributed environment. There are some scenarios where the process might get killed by some other processes. But I need the process to return 0 even after the failure/killed. Is there anyway to implement…

pkgajulapalli
- 101
- 2
0
votes
1 answer
Kill an application knowing its name and command line arguments
If I run a single instance of an application I can kill it via "kill my_app_name" without having to find out what its PID is. But when I'm running multiple instances of the same application with different command line arguments, how can I kill it in…

Raj
- 129
- 1
- 1
- 6
0
votes
0 answers
How to handle mpi head node failure?
There is app which starting with mpirun. If compute node fail then all processes crush, but if only head node fail(for example reboot) then processes will stuck on compute nodes. How to get rid of this zombie processes automatically?

Severgun
- 163
- 2
- 8
0
votes
1 answer
Ubuntu server randomly kills Apache2 - I guess I know why
Been weeks, even months, that after a logrotate, my Apache2 server suddenly stops and can't restart, mainly because of the password on the cert. but I do not want to remove it.
At the beginning I thought it was due to Logrotate.
But then, I…

aPugLife
- 287
- 1
- 5
- 14
0
votes
1 answer
How to automatically kill PHP processes with infinite loops at server level
I have a sandbox on my server where I allow users to run their own PHP scripts. If a PHP script has an infinite loop, it only stops when Apache times the process out (30 seconds) which is obviously less than ideal. I know some web hosts…

scotts
- 237
- 2
- 9
0
votes
1 answer
How can I kill a Windows Process that refuses to die
Running Windows Server 2003, I have some processes that when killed take a a few minutes of 100% cpu to die.
Using Process Explorer to view the processes threads I always see 2 threads, with one of them using lots of cpu and stuck in…

DanJ
- 279
- 1
- 4
- 12
0
votes
5 answers
Way to kill frozen application
I have an application that freezes. I can't terminate it with ^C, so I have to do following:
$ ./myapp
^C^Z
[1]+ Stopped ./myapp
$ pgrep -lf myapp
18479 bash ./myapp
$ kill -9 18479
$ fg
bash: fg: job has terminated
[1]+ Killed …

nkrkv
- 103
- 3
0
votes
0 answers
VPS restarted for no reason. Why?
I have a VPS that runs a Java server, a redis server and a PostgreSQL server.
Everything is running well but last night my server "crashed" at 3:15:50 AM. At least that's what I thought.
I looked at my server log and I saw several exceptions caused…

Fabien Henon
- 109
- 1
0
votes
1 answer
Weird stuff in server error log?
I have a PHP script that shuts down server processes based on their PIDs. It seems like it works well, however, I found this weird stuff in Apache's error log. Any idea on what it's saying?
[Thu Jul 24 10:27:09.609608 2014] [mpm_prefork:notice] [pid…

S17514
- 1
- 1
0
votes
2 answers
Kill process that hogs all CPU
So ImageMagick has the "convert" command which I use for my (Linux) web platform to deal with image resizing and such.
Sometimes this command gets "stuck", meaning it starts eating machine resources until the entire machine is unavailable. Logging…

Sandman
- 349
- 1
- 4
- 15
0
votes
1 answer
view/kill a Windows O/S processes from Ubuntu Server
Is there a Ubuntu version of Sysinternals Process Utilities, which allows Window users to view/control remote processes? I already know I can setup cygwin on Windows and use ssh to remote in. All I'm wondering is if there is a program that view/kill…

Benjamin Jones
- 326
- 1
- 9
- 23
0
votes
2 answers
Privilege user killing user processes
can we do the following on *NIX.
Create following folder structure.
//
//
//
//
where is owned by master…

user192702
- 931
- 5
- 15
- 22
0
votes
2 answers
What signal is sent to running process after network fail?
I am trying to reproduce a situation where a process fails due to a network outage. I was hoping to reproduce this signal with a kill command. A normal kill command is not working. I have taken a look at /usr/include/sys/signal.h to try to find a…

SSH This
- 495
- 1
- 5
- 8