#!/bin/tcsh -f # Kill all HOSS processes on the local node. # # Specifically, this kills any process with start_hoss_worker or hd_data_flow.py # in the command line. Usually, there are multiple processes in the heirarchy # that actually run the hd_data_flow.py script. These include hdlog, tcsh, # start_hoss_worker, and python3. All of these should be killed by this. # # This script is usually run from the start_hoss script via ssh. Originally, # start_hoss would run the pkill command via ssh which would often kill # a parent process of the pkill command itself before it finishes killing the # actual target. Doing it this way works since pkill will not kill itself. pkill -f --signal SIGKILL "start_hoss_worker|hd_data_flow.py"