def signal_program(program_name, sig=signal.SIGTERM, pid_files_dir=None):
 pid = get_pid_from_file(program_name, pid_files_dir)
 if pid:
  signal_pid(pid, sig)

def signal_program ( program_name , sig = signal . SIGTERM , pid_files_dir = None ) : pid = get_pid_from_file ( program_name , pid_files_dir ) if pid : signal_pid ( pid , sig )
sends a signal to the process listed in <program_name> .