Questions tagged [kill]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
544 views

Permission denied when using kill as root

I'm starting a java program as a non-privileged user that I sudo'd into, then exit the shell. Being root again I try to kill -9 the java process. This causes a "permission denied" error. ...
Dino's user avatar
  • 3
2 votes
1 answer
12k views

Can't remove /var/lib/docker due to "Device or resource busy"

I've tried to uninstall docker and failed because I am not able to remove this dir /var/lib/docker and it gives me this error: (base) [xxx@xxx ~]$ sudo rm -rf /var/lib/docker/ rm: cannot remove ‘/var/...
Galilej25's user avatar
1 vote
1 answer
454 views

How can I kill a process remotely on a windows server when the server has exceeded its memory limit?

Context I use and manage* a windows server at work. It is used for general computations by up to 5 users at a time via RDP. The server has 128GB of RAM which is sufficient for the work we do on it. ...
Saaru Lindestøkke's user avatar
1 vote
1 answer
2k views

virt-install hangs and won't die. How to stop safely?

I am having a problem where virt-install gets stuck in the very early stages and cant be killed (after saying "starting installation", but before the VM is visible in virt-manager). Ctrl-C does not ...
Stonecraft's user avatar
1 vote
0 answers
859 views

Kill a hanging sync from a cifs drive

I copied a file to a cifs drive and instinctively ran a sync on it, which hung indefinitely. Strangely, I could successfully unmount/remount the drive without issues, making me think that the drive ...
Brydon Gibson's user avatar
0 votes
1 answer
3k views

Kill a running process inside a docker

I've run a find command on a very large folder inside my docker, and now it is stuck for more than an hour. I've tried to kill -9 the process, and kill the docker container with docker kill <...
blue112's user avatar
  • 143
14 votes
1 answer
76k views

Killing systemd service with and without systemctl

What is the difference between killing an running daemon systemd service like this : kill -SIGKILL 3645 and systemctl -s kill -SIGKILL 3645 where 3645 is the pid of the systemd service.Also are ...
Gordon's user avatar
  • 161
0 votes
1 answer
7k views

How to restart linux services if it reaches 100% CPU? [closed]

I have postfix email server with saslauthd. Time and again saslauthd daemon eats 100% CPU. Restarting these services returns to normal cpu usage. Is there any proper script to determine services with ...
Anand Shrestha's user avatar
0 votes
2 answers
4k views

How to kill a process by its full name, including the path?

Given the full file name of a process, how can I kill it? Not only by its file name, but by full file name. I've looked into kill and pkill and they're not what I'm looking for.
Korim's user avatar
  • 27
0 votes
1 answer
4k views

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 $...
Honghe.Wu's user avatar
  • 109
0 votes
3 answers
2k views

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 ...
OldProgrammer's user avatar
0 votes
2 answers
484 views

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 ...
pkgajulapalli's user avatar
0 votes
1 answer
503 views

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 ...
Raj's user avatar
  • 129
1 vote
1 answer
237 views

how to stop for loop on another tty

We are connecting to the same host via the same user. So, only our sessions/tty are different. If one of us starts a for loop such as:for i in *; do command $i; done, I don't know how to stop it. All ...
Sam Gold's user avatar
2 votes
1 answer
183 views

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 ...
Jamie's user avatar
  • 1,284
0 votes
0 answers
230 views

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 ...
Severgun's user avatar
  • 163
10 votes
2 answers
34k views

cannot remove file, Device or resource busy

I tried removing a file. The most relevant answer can be found here, but I found no luck. Here is the original problem: maxgitt@mgpc:~$ sudo rm -rf /var/lib/docker/ rm: cannot remove '/var/lib/docker/...
Max's user avatar
  • 237
1 vote
1 answer
2k views

Killing process group safely

How can one kill a process group safely, and force kill if needed? The goal is to do a kill with SIGTERM (-15) then if the apps in the tree do not die after a timeout (e.g. 60 seconds) do a SIGKILL (-...
suh's user avatar
  • 13
2 votes
3 answers
19k views

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 ...
xrdp's user avatar
  • 21
3 votes
1 answer
247 views

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 ...
dragosb's user avatar
  • 171
4 votes
2 answers
2k views

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 ...
mexell's user avatar
  • 41
0 votes
1 answer
161 views

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 ...
aPugLife's user avatar
  • 287
2 votes
1 answer
5k views

Long running PHP process randomly stops with message 'Killed'

I have a PHP script I wrote that I am running, and it has ran all the way through before, but for some reason, it keeps stopping with a message of 'Killed' ... It is my box, no one else is logged in ...
Jeffrey L. Roberts's user avatar
1 vote
1 answer
3k views

Kill process and child processes, not parent processes, not group

I need to kill a process and all of its subprocesses programatically. Killing the group is not an option because I do not want to kill the parent processes. Example: pid process 1 ...
firelynx's user avatar
  • 119
1 vote
1 answer
146 views

MariaDb and Httpd getting killed due to memory

I have a Centos7 VPS on OVH with this settings: 1Virtual Core 1 GB Ram 10 GB Raid 10 I have running on it 3 wordpresses. One of them is still on building (0 access to public), other has very few ...
Cafn's user avatar
  • 131
0 votes
0 answers
519 views

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 ...
Fabien Henon's user avatar
6 votes
1 answer
2k views

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 ...
omnivir's user avatar
  • 99
-1 votes
2 answers
6k views

Bash script to kill specific process running longer than 5m [closed]

Hi I'm looking for a BASH script for CentOS 6.5 that kills a processes by name that's been running longer than 5 minutes. I asked this question before and received a response that doesn't work under ...
Jonathan's user avatar
  • 207
2 votes
1 answer
2k views

Kill any GS process that's been running for over 5m on CentOS 6.5

Hi our server has a weird issue where once a month or so a GS (GhostScript) process gets stuck and eats 10-75% CPU until I kill the process. strace hasn't provided anything useful so until I can ...
Jonathan's user avatar
  • 207
0 votes
1 answer
1k views

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 ...
S17514's user avatar
  • 1
5 votes
2 answers
5k views

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; ...
Robert Tupelo-Schneck's user avatar
1 vote
3 answers
187 views

get PIDs of processes from

I have a path to an executable. Assume I want to delete this file. I need to find all processes launched using this file and kill them. What is the best way to do it?
Victor Mezrin's user avatar
0 votes
2 answers
2k views

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 ...
Sandman's user avatar
  • 349
8 votes
2 answers
17k views

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 ...
Jelle De Loecker's user avatar
0 votes
1 answer
65 views

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 ...
Benjamin Jones's user avatar
0 votes
2 answers
205 views

Privilege user killing user processes

can we do the following on *NIX. Create following folder structure. /<parent folder>/<child folder 1> /<parent folder>/<child folder 2> /<parent folder>/<child ...
user192702's user avatar
1 vote
1 answer
2k views

How to know which user killed a process

Is there a way in linux to find out which user or which process killed another process? Maybe a log? I searched through /var/log and specifically on auth.log.* but I didn't find anything interesting.....
gc5's user avatar
  • 137
0 votes
2 answers
90 views

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 ...
SSH This's user avatar
  • 495
6 votes
1 answer
19k views

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's user avatar
  • 265
1 vote
1 answer
354 views

I just installed a profiler into Tomcat 7 and now I'm getting BindException on shutdown

So the HOWTO I just read says to add these JAVA_OPTS to the startup script: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=[place port number here] -Dcom.sun.management....
user447607's user avatar
1 vote
3 answers
380 views

kill script execution

I have a script that I have to run with certain frequency. This script executes a number of programs, in a loop, setting some variables in each loop. Since this script runs for hours, I run it using ...
cauchi's user avatar
  • 197
2 votes
2 answers
2k views

kill -HUP is not working with celery daemon

So I have a shell script that daemonizes celery, and creates a bunch of workers running as a daemon. I would like to have a way to restart the celery task when the underlying source gets changed since ...
Kevin Meyer's user avatar
1 vote
3 answers
22k views

How to safely kick out other users logged in as root?

I tried this: pkill -KILL -u root It turns out that wasn't what I wanted. Now I can't log in by SSH. What is the correct way? Edit - I've added the word "safely" to the question. I know that you ...
Buttle Butkus's user avatar
11 votes
3 answers
7k views

What effect does it have on a server when you kill all root processes?

There were other devs logged in as root that I wanted to kick out. So I issued pkill -KILL -u root Then I realized that I probably killed all kinds of root processes. Have I damaged my system? I ...
Buttle Butkus's user avatar
10 votes
3 answers
29k views

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 ...
cat pants's user avatar
  • 2,283
1 vote
3 answers
7k views

linux/solaris kill many proccess with one command

Is it possible to kill all find process with one command? I do not want to kill each process as kill -9 25295 , kill -9 11994 , etc.. Rather, what I want is a simple way or command that kill all find ...
yael's user avatar
  • 2,443
1 vote
1 answer
596 views

ps and top show a different command name then what pkill and pgrep sees

Often times I want to kill process that I believe has changed its command name (I think through setproctitle() or something similar). Apparent pkill, pgrep, and friends do not read the new command ...
Adam Gent's user avatar
  • 260
2 votes
1 answer
700 views

When I kill a subprocess created in a bash script - it automatically re-spawns. Why?

I have the following script which I run using the command: ./thescript.sh 2>&1 & and if I kill the sub process spawned by it, after a few seconds it is restarted. Why is this? thescript....
Stevo's user avatar
  • 135
29 votes
3 answers
25k views

kill -9 a postgres process

A postgres SELECT query ran out of control on our DB server and started eating up tons of memory and swap until the server ran out of memory. I found the particular process via ps aux | grep postgres ...
Banjer's user avatar
  • 3,994
2 votes
1 answer
2k views

MySQL: nothing listening on port 3306 but the processes still exist. How to graceful shutdown?

Percona-XtraDB-Cluster-server-5.5.24-23.6.340.rhel5 This is a slave server. mysqladmin shutdown hangs at: [Note] Event Scheduler: Purging the queue. 24 events [Note] Slave I/O thread killed while ...
quanta's user avatar
  • 51.6k