Skip to main content

Questions tagged [signals]

1 vote
1 answer
34 views

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 "...
juhist's user avatar
  • 352
0 votes
1 answer
315 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
577 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
824 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
13k 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
9k 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
88 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

15 30 50 per page