This is required to not trigger "error detection" of some mail wrapper
scripts etc., that would notice output og shutdown(8) on stderr -- which
outputs messages there, even when there is NO error ...
if [ "$rsys_users" = "0" ]; then
echo "$NAME: Power off \"$SYSTEM\" again ..."
# shellcheck disable=2029
- ssh -o PreferredAuthentications=publickey -q "$SYSTEM" "sync; shutdown -hP $SHUTDOWN_TIME" >/dev/null
+ ssh -o PreferredAuthentications=publickey -q "$SYSTEM" "sync; shutdown -hP $SHUTDOWN_TIME" 2>&1 >/dev/null
if [ $? -ne 0 ]; then
echo "$NAME: Failed to power off \"$SYSTEM\"!" >&2
return 5