Questions tagged [signals]
33 questions
2
votes
1 answer
Process inside docker container not receiving signals?
I have a process in a docker container that is supposed to log a thread dump (on stdout) when shut down. However when docker stop is called on it, no output happens.
It seems that either the process doesn't receive the TERM signal or the output is…

Svante
- 131
- 3
2
votes
2 answers
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 the --autoreload option does not work.
According…

Kevin Meyer
- 145
- 7
1
vote
2 answers
Logging Linux processes which exit because of a signal?
While running FreeBSD a long time ago, there was a default feature which logged when a process received one of the fatal signals, like SIGSEGV, SIGBUS, SIGKILL, etc. and was terminated because of that.
Is there something similar for Linux?

Ivan Voras
- 186
- 2
- 7
1
vote
0 answers
Server keep restarting after reaching 'starting web server'
Recently one of our server failed and wont start services. I looked over the /var/log/messages and found this:
Dec 27 00:53:48 localhost apcupsd[3413]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed…

Aleksandar
- 111
- 5
1
vote
0 answers
How to write a bash script that traps SIGTERM and kills the process and all sub-processes immediately
I have this script:
#!/bin/bash
set -e
#WHAT SHOULD I WRITE HERE?
sleep 60 # this is for testing
#java ... | logger # this is what will be in the real script
I want to be able to kill myscript and all it's sub-processes by sending myscript a…

Gavriel
- 229
- 2
- 10
1
vote
2 answers
Apache Kafka 0.8.1.1 clean shutdown not working
I have a:
single instance of Apache Kafka (2.9.2-0.8.1.1) installed from the source, using the default configuration (server.properties etc.),
Zookeeper (3.4.5+dfsg-2) stand-alone, installed from the package
..running on a Ubuntu 14.04 LTS host…

Greg Dubicki
- 1,239
- 1
- 17
- 33
1
vote
0 answers
Linux: Process ignores signals
Processes running in Linux ignores signals (INT,QUIT,TERM) except KILL. Programs such as top, tail -f, sleep and etc, do not respond when pressing Ctrl+C and thus have to stop them from another console using the kill utility.
Strace not showing any…

lesovsky
- 243
- 1
- 7
1
vote
0 answers
Unexpected jBoss crash and auditing signals
We're experiencing unexpected JBoss crashes on a semi-regular basis. JBoss 5 is running on RHEL6 in this case.
I believe this is related to a sigusr1 sent to the JBoss process. The JBoss server logs simply end, nothing is logged at all regarding…

Antitribu
- 1,719
- 3
- 23
- 37
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
1 answer
ubuntu upstart never killing my process
I have a simple bash script:
echo "Starting"
function sigint {
echo "sigint"
}
function sigterm {
echo "sigterm"
}
trap sigterm SIGTERM
trap sigint SIGINT
while true
do
sleep 2
echo "-"
done
I launch this script with upstart using this…

rmonjo
- 231
- 2
- 4
- 12
0
votes
0 answers
Ctrl-C is ignored by pppd when put in a shell script
I'm trying to connect to GPRS network through a serial port connected GSM modem.
When I call /usr/sbin/pppd call from the command line, It correctly receives and handles Ctrl+C from keyboard. But when I put the exact same command in an…

zaadeh
- 161
- 2
- 6
0
votes
1 answer
Logging violations of rules in limits.conf
I am trying to log the details of the programs that where failed due to the limit cap defined in the limits.conf. My initial plan was to do it using the audit system. The idea was to track the system calls related to limits in the limits.conf that…

PaulDaviesC
- 149
- 4
0
votes
2 answers
How can I use symbolic signals in an at job?
In this answer on SO, I gave an example that should have used a -SIGCONT signal in a job submitted to at. However, I found that the process that I had stopped with -SIGSTOP did not continue. When I changed the signal to the numeric value, it…

Dennis Williamson
- 62,149
- 16
- 116
- 151
0
votes
2 answers
PostgreSQL processes and the signals to which they respond
For PostgreSQL 8.3 and later, what are the processes that make up the server and that respond to a query?
What signals do the various processes respond to and what effect do the signals have?
What are the guidelines for which signals should or…

Bribles
- 1,004
- 6
- 11
0
votes
2 answers
Unicorn retains same PID when receives USR2?
So, I've been playing with a unicorn deployment on my personal server. There are a variety of reasons behind this - one of them being that I didn't particularly want to have to compile my own version of nginx in order to get phusion passenger. (I…

Matt Farmer
- 141
- 8