Lines Matching +full:max +full:- +full:load +full:- +full:value
3 # SPDX-License-Identifier: Apache-2.0
20 # pylint: disable=duplicate-code
28 # Define the command and the max size
33 # Define the return value in handle function
42 log = logging.getLogger("remote-fw")
65 data = self.request.recv(min(BUF_SIZE, fsize - len(total)))
81 md5_tx = md5_tx_b.decode('utf-8')
93 recv_file = recv_file.decode('utf-8')
105 action = cmd.decode("utf-8")
106 log.debug(f'load {action}')
113 log.error("incorrect load communitcation!")
117 self.request.sendall("success".encode('utf-8'))
120 self.request.sendall("failed".encode('utf-8'))
131 action = cmd.decode("utf-8")
153 # - Different PGID: signal is propagated and sleep is terminated
157 # - Same PGID, sleep is NOT terminated
159 # sudo bash -c 'sleep 15 & killall sudo'
161 # ps xfao pid,ppid,pgid,sid,comm | grep -C 5 -e PID -e sleep -e sudo
223 log.error("Try: sudo pkill -9 -f %s", runner.load_cmd)
227 os.system(f"sudo kill -9 {proc.pid} ")
285 log.error(f'Cannot find load cmd {self.load_cmd}.')
296 ap.add_argument("-q", "--quiet", action="store_true",
298 ap.add_argument("-v", "--verbose", action="store_true",
300 ap.add_argument("-s", "--server-addr",
302 ap.add_argument("-p", "--log-port",
304 ap.add_argument("-r", "--req-port",
306 ap.add_argument("-c", "--load-cmd",