signal.sh 183 B

123456
  1. #!/bin/sh
  2. # Sends termination signal to job_killer.sh, which triggers the job shutdown process.
  3. pid=$(ps x | grep "[.]/job_killer.sh" | awk '{ printf "%d ", $1 }');
  4. kill -TERM $pid