From 7ea6aa969779865cc296cc497e19e80fab958a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:32:12 -0300 Subject: [PATCH] fix(remoteshell): give the kill option its hyphen The fallback that runs when the restart of the ssh service fails collects the process ids of the daemon and kills them. The option is missing its hyphen, so the shell reads the signal number as one more process id. The daemons then get the default signal, which a process can catch, and the shell also signals the process with id 9. The next line of the same fallback already uses the correct form. --- xCAT/postscripts/remoteshell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 28f4a3dfa..54390fd93 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -648,7 +648,7 @@ fi #try to kill the process and start if [ "$?" != "0" ];then PIDLIST=`ps aux | grep -v grep | grep "/usr/sbin/sshd"|awk -F" " '{print $2}'|xargs` - [ -n "$PIDLIST" ] && kill 9 $PIDLIST + [ -n "$PIDLIST" ] && kill -9 $PIDLIST /usr/sbin/sshd fi kill -9 $CREDPID