Questions tagged [sigterm]

SIGTERM is one of the POSIX mandated signals; it indicates that the process should terminate, which is also the default action for SIGTERM.

238 questions
0
votes
1 answer

Bash wait for several simultaneous subprocesses and kill all on error

I'm running a bash script with multiple simultaneous commands (python scripts). I'm trying to kill all the processes if one of them has failed. The thing is that the python scripts are still running in the background, and if one of them has failed,…
Alex Brodov
  • 3,365
  • 18
  • 43
  • 66
0
votes
1 answer

Send "sigterm" from Java to Bash script

I am starting a Java code from Bash script called start.sh. The Bash script fires up the Java code and then the Java code runs. At the end of the Java program, I want to send a signal back to the Bash script to terminate. Keep in mind that the Bash…
Mohammad Sohaib
  • 577
  • 3
  • 11
  • 28
0
votes
3 answers

Process using zookeeper C client gets disconnected on SIGTERM

We are using the Apache Zookeeper Client C bindings in our application. Client library version is 3.5.1. When the Zookeeper connection gets disconnected, the application is configured to exit with error code 116. Systemd is being used to automate…
Bug Killer
  • 661
  • 7
  • 22
0
votes
1 answer

systemd - Child is receiving a SIGTERM on parent exit

Environment: I have a python server which forks into 3 children. For the parent: SIGTERM is supposed to kill all children and SIGHUP is just supposed to log and exist For the child: Both SIGTERM and SIGHUP maps to SIG_DFL Problem: When I start…
mittal
  • 915
  • 10
  • 29
0
votes
0 answers

Trying to ignore SIGTERM failed under Linux, process still exited

I met one issue of signal handling under Linux, my target is to let process ignore SIGTERM signal. But sometimes, process still exited, the probability of this issue will be 1/60. Fake code of my application: static int g_count_sig_old =…
0
votes
1 answer

Python: Override default SIGTERM handler

I am sending SIGTERM signal to my server via start-stop-daemon. As expected the server shuts down when signal is received. Now I want to halt my server for 10 sec after receiving SIGTERM and then shut it down. To achieve this I wrote def…
akipro
  • 188
  • 1
  • 2
  • 11
0
votes
2 answers

How to end a process in another linux terminal

Background Info: I'm trying to set up a remote display using a raspberry pi. Currently I'm using fbi (frame buffer image viewer) to display the image. The device is going to be controlled via ssh or web interface - not sure which, but definitely…
0
votes
0 answers

Ending an application with SIGTERM

I am rather new to Java and I need to construct a way inside of my application to handle a SIGTERM signal so that my application can gracefully shutdown. This means it finishes what it is currently working on and does not accept new work. The…
0
votes
2 answers

I'm unable to capture SIGTERM when I'm using sudo shutdown -h in node.js

I'm working at raspberry pi and node version is "node-v0.10.28-linux-arm-pi". I'm have run the below code. 'use strict' var util = require(‘util’); var config = require(‘./config.js’); var fs = require(‘fs’); var pidInfo =…
user5489733
0
votes
1 answer

abrtd: Node Process was killed by signal 6 (SIGABRT)

I am running a Node program that does a long running data migration job. After an hour is process, Node process terminates by Abrt daemon and creates core dump. Looking into the reason I see this: node process was killed by signal 6 (SIGABRT) Any…
rohit12sh
  • 827
  • 2
  • 11
  • 24
0
votes
1 answer

'SIGTERM' problem

I have this problem that when there is an OpenGL application I am working on. When I try drawing this particular piece of code: for (float i = 0; i < 100; i++) { glBegin(GL_LINE_LOOP); glVertex3f(cos(i), i, -10.0f); } glEnd(); I get this…
thyrgle
0
votes
1 answer

I have a problem with the WIFSIGNALED()/WTERMSIG() macros, after using waitpid()

In this code C i launch a program from the command line and when it is closed from a signal different from SIGTERM (signal for normal end) my code should relaunch the initial program passed from the command line. But it is not so, in fact my code…
Andrea
  • 23
  • 1
  • 4
0
votes
2 answers

Killing Subshell with SIGTERM

I'm sure this is really simple, but it's biting me in the face anyway, and I'm a little frustrated and stumped. So, I have a script which I've managed to boil down to: #!/bin/sh sleep 50 | echo If I run that at the command line, and hit Ctrl-C it…
psycotica0
  • 3,130
  • 2
  • 19
  • 16
0
votes
1 answer

Execute function in php before SIGTERM

I am executing a PHP script through Windows Console. I have some ending functions that write results to a file. Anyway, sometimes I have to interrupt the execution (ctrl + c) and halt the script. I am interested in some way to write the current…
0
votes
1 answer

Cannot start diaspora server anymore

I had no problem with my diaspora pod until several hours ago. Diaspora went off and since then, it has been impossible to turn it back on. First, here is my terminal output : http://pastebin.com/PZeusSsK Output of : /script/get_config.rb…
apluchead
  • 21
  • 4
1 2 3
15
16