Skip to main content

Questions tagged [sigterm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
61 views

How to set the time interval between SIGTERM and SIGKILL for a user process during Ubuntu 20.04 system shutdown

This is the source code of TestShutdown program: bool stop = false; void sig_handler(int signal) { printf("receive signal %d\n", signal); fflush(stdout); fsync(fileno(stdout)); ...
lianglongxiao's user avatar
4 votes
1 answer
870 views

What is the correct way to unconditionally kill a process?

I have two hotkeys for interactively looking up and killing a process on Linux: bindsym $mod+k exec --no-startup-id \ "ps axo pid,cmd | sed 1d | dmenu -i -l 20 | awk '{print $1}' | xargs kill&...
Fadeway's user avatar
  • 163
2 votes
1 answer
586 views

I wish to kill a service with a "sytemctl kill logstash.service" but SIGTERM is received by the service, instead of a SIGKILL. How do I send SIGKILL?

A new logstash version I'm using can't stop, attempting to connect to Elastic all the time, while it can't (an authentication trouble, I will resolve later). a sudo systemctl stop logstash.service isn'...
Marc Le Bihan's user avatar
2 votes
0 answers
364 views

Java process getting terminated in Redhat by SIGTERM from Systemd

I'm starting a Java process using nohup and & (running it in the background). This process gets terminated frequently. There is no pattern on when it is getting terminated. From the application (...
Raghu's user avatar
  • 121
2 votes
0 answers
320 views

xargs nano leads to Received SIGHUP or SIGTERM while xargs less is OK

Scenario: $ cat t0.txt t1.txt $ cat t1.txt xxx $ sed -n 1p t0.txt | xargs less # OK $ sed -n 1p t0.txt | xargs nano Received SIGHUP or SIGTERM dvl-linux64 $ nano --version GNU nano, version 2.5.3 ...
pmor's user avatar
  • 593
0 votes
1 answer
474 views

Intercepting system signal as a strategy to prevent kill calls from taking effect

As a follow up to this question, I am correct that (4) (quote below) is the farthest I can get ? in my app (a .NET app which runs as a systemd daemon), intercept the kernel signal sent to the process ...
Veverke's user avatar
  • 378
0 votes
1 answer
303 views

Graceful termination of child in systemctl shutdown

I liked SensorSmith answer at Forward SIGTERM to child in Bash, but for my systemctl script, it resulted in a double SIGTERM, because systemctl sends SIGTERM to the parent bash instance AND the child ...
jws's user avatar
  • 101
0 votes
0 answers
28 views

Strange behavior of bash and SIGTERM with Ubuntu [duplicate]

Here's what happens in Ubuntu (Linux ubuntu 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux, bash 4.4.20(1)): In Terminal, open a window (let's call ...
diciotto's user avatar
3 votes
1 answer
3k views

rsync (but also other commands) run with nohup gets sigterm

I'm connecting from my computer to a HP UX B.11.31 system and am running some very lengthy there commands using nohup so I can go to sleep and do something else for a few days while they complete. ...
bluppfisk's user avatar
  • 173
1 vote
0 answers
162 views

Spawn, grep/find, and kill a linux process

I have a basic question which I need help with. We have a use-case where we want to spawn a process in a different session/process-group i.e. if the parent spawning the process gets a SIGTERM, the ...
instanceOfObject's user avatar
0 votes
1 answer
4k views

find command killed by signal 15

I have a problem regarding the find command: I use this line in a script to run around 300 servers and check if a file is present, returns 0 if the file is there and returns 1 if the file is not. $(...
Marc Mollins's user avatar
8 votes
2 answers
12k views

What is the delay between SIGTERM and SIGKILL on shutdown?

When a Unix-like system is shut down normally, e.g. using halt, shutdown, poweroff etc. or the GUI equivalents, it will try to exit all processes gracefully first by emitting a SIGTERM signal to them. ...
Hugo G's user avatar
  • 350
1 vote
0 answers
989 views

Can't create new file with nano, Received SIGHUP or SIGTERM

I found only this question of this subject: Received SIGHUP or SIGTERM: nano cannot edit empty file I'm configuring my web server. There wasn't any problems earlier and I would like to know exactly ...
MiQuela's user avatar
  • 11
1 vote
1 answer
3k views

Must SIGKILL (and SIGTERM) be explicitly sent to a specified process?

Reading Gilles' answer, SIGHUP is about the same as SIGTERM in terms of harshness, but it has a specific role because it's automatically sent to applications running in a terminal when the user ...
Tim's user avatar
  • 105k
-1 votes
2 answers
1k views

server stuck at the boot process:RECEIVED SIGTERM

The issue is when I try to log in the server using SSh , it's not responding and cannot be pinged. And when I go to the console and reboot the server, its stuck in the reboot process. How Can this ...
Adarsh 's user avatar
0 votes
0 answers
380 views

kill command SIGKILL vs SIGTERM [duplicate]

there was a nice write up somewhere on here about... not using kill-9 all the time which is SIGKILL and explained the reasons for doing so, and then went on to explain an order in which one should ...
ron's user avatar
  • 7,762
-1 votes
1 answer
2k views

ctrl+c closes terminal window completely - why / how?

I have a process, and when I issue ctrl+c in the terminal, it closes the terminal window completely, anybody know why that might be happening? This is how the process is now started: exec "$(dirname ...
Alexander Mills's user avatar