Questions tagged [signals]
The signals tag has no summary.
36 questions
1
vote
1
answer
34
views
Is it possible to have custom reload/restart-like commands in systemctl for a daemon?
I'm developing a daemon that runs under control of systemd, and that has a feature to reload code that's inbetween "systemctl reload" and "systemctl restart". Unlike "...
0
votes
1
answer
315
views
Stop a Docker container from outliving its docker run command
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 ...
3
votes
1
answer
577
views
How to find which process sent a HUP signal to my node.js process?
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 ...
9
votes
2
answers
8k
views
How to send a signal to a Docker container without affecting restart policy?
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 ...
7
votes
3
answers
18k
views
Letting systemd service to stop later without blocking on `systemctl stop`
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 ...
1
vote
2
answers
6k
views
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....
2
votes
1
answer
824
views
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 ...
4
votes
1
answer
2k
views
Ctrl+C no longer working to get a new blank line in bash
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 ...
23
votes
2
answers
13k
views
Configure buggy systemd service to terminate via SIGKILL
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). ...
0
votes
1
answer
5k
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 $...
5
votes
1
answer
9k
views
whats the difference between sigkill and sigabrt? [closed]
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 ...
1
vote
0
answers
88
views
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 ...
1
vote
0
answers
2k
views
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 ...
1
vote
2
answers
2k
views
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 ...
0
votes
1
answer
254
views
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 "-"
...