Skip to main content

Questions tagged [signals]

0 votes
1 answer
299 views

I have a standard job management system that lets me run shell scripts as jobs, and kill them on command or when they take too long to run. Some of my jobs turn around and run Docker containers, in ...
interfect's user avatar
  • 383
3 votes
1 answer
555 views

Every Monday at 9AM UTC something sends a HUP signal to my node.js process (and I think HUP is being sent to all processes, not just mine). How do I find which process sent the HUP signal to my ...
user avatar
9 votes
2 answers
8k views

TIL that docker kill means kill in the sense of "make it dead", as opposed to the POSIX sense of "send a signal". We have several containers that we need to send a SIGHUP to in ...
leedm777's user avatar
  • 365
7 votes
3 answers
18k views

I have bunch of services responsible for running action consumed from the queue. I want to be able to restart services gently (without interrupting action which're already running) It can be solved ...
Jakub Kuszneruk's user avatar
1 vote
2 answers
6k views

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....
Ivan Voras's user avatar
2 votes
1 answer
811 views

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 ...
Svante's user avatar
  • 131
4 votes
1 answer
2k views

I have been using Ctrl+C on most terminals to easily cancel the line I was writing and open the way for a new line. (I'm not talking about killing a running bash script, but just opening a new blank ...
Cyril Duchon-Doris's user avatar
23 votes
2 answers
12k views

Background I've been asked to create a systemd script for a new service, foo_daemon, that sometimes gets into a "bad state", and won't die via SIGTERM (likely due to custom signal handler). ...
Cloud's user avatar
  • 425
0 votes
1 answer
5k views

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
5 votes
1 answer
8k views

The other day I experienced a halt in my python application with sigabrt, but I knew that the init should send a sigkill signal. I'm curious what's the difference between them, if any? Can someone ...
Rohola Zandie's user avatar
1 vote
0 answers
86 views

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 ...
Aleksandar's user avatar
1 vote
0 answers
2k views

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 ...
Gavriel's user avatar
  • 229
1 vote
2 answers
2k views

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 ...
Greg Dubicki's user avatar
  • 1,415
0 votes
1 answer
254 views

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 "-" ...
rmonjo's user avatar
  • 241
1 vote
0 answers
606 views

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 ...
lesovsky's user avatar
  • 243
0 votes
0 answers
125 views

I'm trying to connect to GPRS network through a serial port connected GSM modem. When I call /usr/sbin/pppd call <peer_name> from the command line, It correctly receives and handles Ctrl+C from ...
zaadeh's user avatar
  • 161
0 votes
1 answer
294 views

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 ...
PaulDaviesC's user avatar
13 votes
2 answers
8k views

I have recently been contracted by a client of mine to facilitate the wireless communication of his "home" offices and a secondary site. The primary site is the top two floors of a 5-story office ...
dlyk1988's user avatar
  • 1,704
10 votes
2 answers
21k views

Is there an industry standard for how strong a Wifi signal needs to be in order to have a reliable connection? For example, maybe Wifi endpoints are designed to the specification that they connect ...
user163521's user avatar
-2 votes
1 answer
2k views

I surely hope this question is not a duplicate of another; I had difficulty finding a cut and dry solution for this on my own, so I thought I might have some luck sharing it with the Hive Mind of ...
Crates's user avatar
  • 109
2 votes
2 answers
3k views

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 votes
1 answer
124 views

I hope that I have asked this question in the right topic. Basically I use BT (In the U.K.) and I have problems with my router receiving a weak signal in certain rooms of the house, which, therefore ...
Phorce's user avatar
  • 101
6 votes
1 answer
510 views

I have a many daemon processes that sometimes get hung up during a db transaction, thus blocking other queries ( and causing general havoc ) In order to debug, I've added some code in the daemon ...
deadkarma's user avatar
  • 163
4 votes
3 answers
5k views

I was briefly shown the networking setup for a rural hospital campus. Some of the things I was told or shown are: There is an 802.11b signal, broadcast over an omnidirectional antenna on a tower. This ...
Nathan Long's user avatar
  • 1,565
1 vote
0 answers
386 views

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 ...
Antitribu's user avatar
  • 1,739
3 votes
2 answers
4k views

I modified the parameter maintenance_work_mem in postgresql.conf in my production environment. I'd like to know if I send a SIGHUP to the postgres process it will reload that variable, and if it's ...
xain's user avatar
  • 697
3 votes
1 answer
912 views

By transparently I mean forwarding of: stdin, stdout and stderr standard signals (SIGHUP or SIGINT would be great for a start) As an example, consider these invocations of a (pointless) local and ...
jnsg's user avatar
  • 31
0 votes
2 answers
1k views

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 ...
Matt Farmer's user avatar
0 votes
2 answers
4k views

I have a series of scripts that are being killed ($? says exit code is 137, which implies a kill -9 scenario). I need to know what process killed them. Is there a way to find out this information?
Glen Solsberry's user avatar
17 votes
4 answers
17k views

I'm using svn+ssh and I see a number of: Killed by signal 15. during a svn up. Any ideas way?
Noah Campbell's user avatar
25 votes
4 answers
19k views

This is a followup to this question. I've run some more tests; looks like it really doesn't matter if this is done at the physical console or via SSH, neither does this happen only with SCP; I also ...
Massimo's user avatar
  • 73.2k
15 votes
4 answers
14k views

Is there a way to find out the origin of a signal sent in Red Hat Enterprise Linux 5 (SIGTERM etc.)? I'm regularly trapping a TERM in an application and I have no idea where it is coming from.
user27451's user avatar
  • 1,201
3 votes
7 answers
739 views

Here is the information displayed by the wireless router (see end of post). The problem is that my netbook does not get any signals from the router if moved more than 3 feet (yup, three feet) away ...
Salman Arshad's user avatar
0 votes
2 answers
2k views

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 ...
Bribles's user avatar
  • 1,054
0 votes
2 answers
270 views

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 ...
Dennis Williamson's user avatar